From 74cbeb1292a439a233c5bfd04c2687163b0d17e7 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 30 Jul 2014 15:06:50 -0500 Subject: [PATCH] Default interface type to ipv4 when checking flags for Solaris Fixes #8330 --- lib/ansible/module_utils/facts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index c1eaaaa722..72f73d67c9 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -2042,8 +2042,7 @@ class SunOSNetwork(GenericBsdIfconfigNetwork, Network): else: current_if = interfaces[device] flags = self.get_options(words[1]) - if 'IPv4' in flags: - v = 'ipv4' + v = 'ipv4' if 'IPv6' in flags: v = 'ipv6' current_if[v].append({'flags': flags, 'mtu': words[3]})