Commit 66f2f31a by Michael DeHaan

Merge pull request #910 from tbielawa/ipv6route

Fix setup module explosion when a route is empty. Closes #909
parents d70be9ad 3d3c8a00
......@@ -473,7 +473,7 @@ class LinuxNetwork(Network):
continue
words = output.split('\n')[0].split()
# A valid output starts with the queried address on the first line
if words[0] == command[v][-1]:
if len(words) > 0 and words[0] == command[v][-1]:
for i in range(len(words) - 1):
if words[i] == 'dev':
interface[v]['interface'] = words[i+1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment