summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2015-10-09 14:01:11 +0100
committerDaniel Watkins <daniel.watkins@canonical.com>2015-10-09 14:01:11 +0100
commit41900b72f31a1bd0eebe2f58a8598bfab25f0003 (patch)
treea01c7f1e87910ec834db335f6e8c8b6efe2def12 /cloudinit/sources
parente9e86164198993aca13148872afdeebaae751c2c (diff)
downloadvyos-cloud-init-41900b72f31a1bd0eebe2f58a8598bfab25f0003.tar.gz
vyos-cloud-init-41900b72f31a1bd0eebe2f58a8598bfab25f0003.zip
Handle escaped quotes in WALinuxAgentShim.find_endpoint.
This fixes bug 1488891.
Diffstat (limited to 'cloudinit/sources')
-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