summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers/azure.py
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2015-05-08 16:52:58 +0100
committerDaniel Watkins <daniel.watkins@canonical.com>2015-05-08 16:52:58 +0100
commitdad01d2cf14a7e0bdca455040fb5a173775cefdc (patch)
tree6d5dc3934afa9bc3a365b0352f899dc4a84ac004 /cloudinit/sources/helpers/azure.py
parent512eb552e0ca740e1d285dc1b66a56579bcf68ec (diff)
downloadvyos-cloud-init-dad01d2cf14a7e0bdca455040fb5a173775cefdc.tar.gz
vyos-cloud-init-dad01d2cf14a7e0bdca455040fb5a173775cefdc.zip
Python 2.6 fixes.
Diffstat (limited to 'cloudinit/sources/helpers/azure.py')
-rw-r--r--cloudinit/sources/helpers/azure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/azure.py b/cloudinit/sources/helpers/azure.py
index 2ce728f5..281d733e 100644
--- a/cloudinit/sources/helpers/azure.py
+++ b/cloudinit/sources/helpers/azure.py
@@ -246,7 +246,7 @@ class WALinuxAgentShim(object):
while True:
try:
response = http_client.get(
- 'http://{}/machine/?comp=goalstate'.format(self.endpoint))
+ 'http://{0}/machine/?comp=goalstate'.format(self.endpoint))
except Exception:
if attempts < 10:
time.sleep(attempts + 1)
@@ -278,7 +278,7 @@ class WALinuxAgentShim(object):
instance_id=goal_state.instance_id,
)
http_client.post(
- "http://{}/machine?comp=health".format(self.endpoint),
+ "http://{0}/machine?comp=health".format(self.endpoint),
data=document,
extra_headers={'Content-Type': 'text/xml; charset=utf-8'},
)