Skip to content

Commit

Permalink
Merge pull request #95 from popindavibe/dev
Browse files Browse the repository at this point in the history
Filtering out `ip address show` command output in order to avoid false positive
  • Loading branch information
rhodesn authored Nov 2, 2018
2 parents 1947486 + e0aadfe commit a4d45c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configsnap
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ if os.path.exists('/usr/bin/systemctl'):

report_info(
"Getting network details, firewall rules and listening services...")
run.run_command(['ip', 'address', 'show'],
run.run_command(['bash', '-c', 'ip a s | sed "/^\s\+valid_lft.*/d"'],
'ip_addresses', fail_ok=False, sort=False)
run.run_command(['ip', 'route', 'show'],
'ip_routes', fail_ok=False, sort=False)
Expand Down

0 comments on commit a4d45c1

Please sign in to comment.