mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-12 00:54:22 -07:00
make this python24 compatible
This commit is contained in:
parent
aa91e11906
commit
c0638842d8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue