Skip to content

Commit a4d45c1

Browse files
authored
Merge pull request #95 from popindavibe/dev
Filtering out `ip address show` command output in order to avoid false positive
2 parents 1947486 + e0aadfe commit a4d45c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configsnap

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ if os.path.exists('/usr/bin/systemctl'):
613613

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

0 commit comments

Comments
 (0)