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'.
reviewable/pr18780/r1
Stephen Fromm 12 years ago
parent ed449ed3e2
commit da58114c87

@ -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()

Loading…
Cancel
Save