Commit c0638842 by Matt Coddington

make this python24 compatible

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