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

fix incorrect secondary ip handling, fixes #7724

This commit is contained in:
Stefan Lapers 2014-06-11 09:32:35 +02:00
parent 50364bb079
commit 78f4842982

View file

@ -1558,7 +1558,7 @@ class LinuxNetwork(Network):
iface = words[-1]
if iface != device:
interfaces[iface] = {}
if not secondary or "ipv4" not in interfaces[iface]:
if not secondary and "ipv4" not in interfaces[iface]:
interfaces[iface]['ipv4'] = {'address': address,
'netmask': netmask,
'network': network}