Merge pull request #42 from hieunba/bugfix/attribute-not-found
Update incorrect attribute name AF_INET from netifaces
diff --git a/DataSourceVMwareGuestInfo.py b/DataSourceVMwareGuestInfo.py
index 73b9219..e320fd2 100644
--- a/DataSourceVMwareGuestInfo.py
+++ b/DataSourceVMwareGuestInfo.py
@@ -525,7 +525,7 @@
# single IPv4 address associated with the same device associated with the
# default IPv6 address.
if not ipv4 and ipv6:
- af_inet4 = addr6_fams.get(netifaces.AF_INET4)
+ af_inet4 = addr6_fams.get(netifaces.AF_INET)
if af_inet4:
if len(af_inet4) > 1:
LOG.warn(