fixes 4365 - Mac with cisco vpn client, GenericBsdIfconfigNetwork get_default_interfaces fails with index out of range

This commit is contained in:
Skylar Saveland 2013-10-03 18:58:11 -07:00
parent 24a3b6c76a
commit b47add0f32

View file

@ -1576,7 +1576,7 @@ class GenericBsdIfconfigNetwork(Network):
for line in lines:
words = line.split()
# Collect output from route command
if len(words) > 0:
if len(words) > 1:
if words[0] == 'interface:':
interface[v]['interface'] = words[1]
if words[0] == 'gateway:':