From 3d3c8a004e8dc3f5ba6dd072b01e2fe5bde6283a Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Sun, 19 Aug 2012 21:19:07 -0400 Subject: [PATCH] Fix setup module explosion when a route is empty. Closes #909 --- library/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup b/library/setup index facd639ffe..b6b7c6a381 100755 --- a/library/setup +++ b/library/setup @@ -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]