Merge pull request #56 from akutz/feature/rm-deepmerge-dep
Remove deepmerge dependency
diff --git a/DataSourceVMwareGuestInfo.py b/DataSourceVMwareGuestInfo.py
index 298be76..12a614d 100644
--- a/DataSourceVMwareGuestInfo.py
+++ b/DataSourceVMwareGuestInfo.py
@@ -570,7 +570,10 @@
"""
addr = None
try:
- addr = ipaddress.ip_address(val)
+ try:
+ addr = ipaddress.ip_address(val)
+ except ipaddress.AddressValueError:
+ addr = ipaddress.ip_address(val.encode('utf-8'))
except:
return False
if addr.is_link_local or addr.is_loopback or addr.is_unspecified: