mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -1057,7 +1057,7 @@ class LinuxNetwork(Network):
|
||||
iface = words[-1]
|
||||
if iface != device:
|
||||
interfaces[iface] = {}
|
||||
interfaces[iface].update(facts[device])
|
||||
interfaces[iface].update(interfaces[device])
|
||||
interfaces[iface]['ipv4'] = {'address': address,
|
||||
'netmask': netmask,
|
||||
'network': network}
|
||||
|
||||
Reference in New Issue
Block a user