From 78f4842982e0c1fff403f6f807b3159d7197e343 Mon Sep 17 00:00:00 2001 From: Stefan Lapers Date: Wed, 11 Jun 2014 09:32:35 +0200 Subject: [PATCH] fix incorrect secondary ip handling, fixes #7724 --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index e5866f7bf6e..21f5e654b32 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -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}