Commit a3371323 by Michael DeHaan

Merge pull request #645 from sfromm/issue643

Skip get_ipv6_facts if socket.has_ipv6 is false
parents 6e84374c 2a0dfba8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment