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

Fix how interfaces is updated with interface fact

Was broken when handling a bridge or bonded (possibly others) interface
This commit is contained in:
Stephen Fromm 2013-04-23 09:13:46 -07:00
parent f36e85efbb
commit 471fa6859e

View file

@ -1057,7 +1057,7 @@ class LinuxNetwork(Network):
iface = words[-1] iface = words[-1]
if iface != device: if iface != device:
interfaces[iface] = {} interfaces[iface] = {}
interfaces[iface].update(facts[device]) interfaces[iface].update(interfaces[device])
interfaces[iface]['ipv4'] = {'address': address, interfaces[iface]['ipv4'] = {'address': address,
'netmask': netmask, 'netmask': netmask,
'network': network} 'network': network}