diff --git a/jc/parsers/netstat2.py b/jc/parsers/netstat2.py index 9b33c324..6dfeb1c6 100644 --- a/jc/parsers/netstat2.py +++ b/jc/parsers/netstat2.py @@ -8,7 +8,7 @@ Limitations: for lines with spaces in the program_name """ import string -import jc +from jc.utils import * def process(proc_data): @@ -87,10 +87,12 @@ def parse_post(raw_data): return raw_data -def parse(data, raw=False): +def parse(data, raw=False, quiet=False): # compatible options: linux, darwin, cygwin, win32, aix, freebsd - jc.jc.compatibility(__name__, - ['linux']) + compatible = ['linux'] + + if not quiet: + compatibility(__name__, compatible) cleandata = data.splitlines() raw_output = []