commit | 47f5c7fb623b3e82e45086b508fae47dca1e4baa | [log] [tgz] |
---|---|---|
author | Hieu <hi3unb@gmail.com> | Wed May 20 10:11:08 2020 +0700 |
committer | Hieu <hi3unb@gmail.com> | Wed May 20 10:11:08 2020 +0700 |
tree | bc3df7df537042f5690e1257b6cca6d98d7b0c27 | |
parent | bf996d9e8be63c4fae114a651a5e014f98b7783c [diff] [blame] |
Update incorrect attribute name for 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(