make this python24 compatible

This commit is contained in:
Matt Coddington 2012-09-07 22:47:03 -04:00
parent 3df57c699e
commit 3102ca41a7

4
setup
View file

@ -537,9 +537,9 @@ class LinuxNetwork(Network):
# interface name for each address
if iface in interfaces:
i = 0
while '{0}_{1}'.format(iface, i) in interfaces:
while str(iface) + "_" + str(i) in interfaces:
i += 1
iface = '{0}_{1}'.format(iface, i)
iface = str(iface) + "_" + str(i)
interfaces[iface] = {}
interfaces[iface]['macaddress'] = macaddress