From 2d6babbd63531d99f851c812f7e11c5cd089797b Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Fri, 20 Jul 2012 17:19:26 -0700 Subject: [PATCH] Skip get_ipv6_facts if socket.has_ipv6 is false --- setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup b/setup index 4a54f04a0d8..e28d69791ae 100755 --- a/setup +++ b/setup @@ -482,6 +482,8 @@ class LinuxNetwork(Network): self.facts[iface]['ipv4']['network'] = socket.inet_ntoa(struct.pack("!L", ip & mask)) def get_ipv6_facts(self): + if not socket.has_ipv6: + return data = get_file_content('/proc/net/if_inet6') if data is None: return