Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjonbrazil committed Jun 19, 2024
1 parent c68c919 commit 9f5532d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions jc/parsers/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,16 @@ def _linux_parse(data):

pattern = re.compile(
r'''
(?P<filesystem>.*)
\son\s
(?P<mount_point>.*?)
\stype\s
(?P<type>\S+)
\s+
\((?P<options>.*?)\)
\s*''',
re.VERBOSE)
(?P<filesystem>.*)
\son\s
(?P<mount_point>.*?)
\stype\s
(?P<type>\S+)
\s+
\((?P<options>.*?)\)
\s*
''', re.VERBOSE
)

mymatch = pattern.match(entry)
groups = mymatch.groupdict()
Expand Down Expand Up @@ -225,7 +226,4 @@ def parse(data, raw=False, quiet=False):
else:
raw_output = _linux_parse(cleandata)

if raw:
return raw_output
else:
return _process(raw_output)
return raw_output if raw else _process(raw_output)

0 comments on commit 9f5532d

Please sign in to comment.