1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #1027 from mcodd/setup_bug_python24

setup not python24 compatible in 0.7
This commit is contained in:
Michael DeHaan 2012-09-08 05:24:09 -07:00
commit 5b57011152

View file

@ -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