From e0aadfe2c2f7bd3a1398edbb03f7abc605c93fc1 Mon Sep 17 00:00:00 2001 From: Jean M Date: Thu, 1 Nov 2018 15:34:39 +0000 Subject: [PATCH] dirty bash trick to filter out ip command output in order to avoid false positive --- configsnap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configsnap b/configsnap index fb4a639..38b6296 100755 --- a/configsnap +++ b/configsnap @@ -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)