summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/helpers/azure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/azure.py b/cloudinit/sources/helpers/azure.py
index 281d733e..33003da0 100644
--- a/cloudinit/sources/helpers/azure.py
+++ b/cloudinit/sources/helpers/azure.py
@@ -233,7 +233,7 @@ class WALinuxAgentShim(object):
hex_string += hex_pair
value = struct.pack('>L', int(hex_string.replace(':', ''), 16))
else:
- value = value.encode('utf-8')
+ value = value.replace('\\', '').encode('utf-8')
endpoint_ip_address = socket.inet_ntoa(value)
LOG.debug('Azure endpoint found at %s', endpoint_ip_address)
return endpoint_ip_address