From da58114c8725964e1733f48dce0eb0ba4621290e Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Sat, 11 Aug 2012 10:41:50 -0700 Subject: [PATCH] Tweak invocation of ip in LinuxNetwork Specify full path to ip and add third argument 'show' to be explicit about requested action. This goes from 'ip addr' to '/sbin/ip addr show'. --- setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup b/setup index a20bbc662c4..9020012ff71 100755 --- a/setup +++ b/setup @@ -454,7 +454,7 @@ class LinuxNetwork(Network): ipv6_address = None ) - output = subprocess.Popen(['ip','addr'], stdout=subprocess.PIPE).communicate()[0] + output = subprocess.Popen(['/sbin/ip','addr', 'show'], stdout=subprocess.PIPE).communicate()[0] for line in output.split('\n'): if line: words = line.split()