diff options
author | Daniel Watkins <daniel.watkins@canonical.com> | 2015-05-08 16:52:58 +0100 |
---|---|---|
committer | Daniel Watkins <daniel.watkins@canonical.com> | 2015-05-08 16:52:58 +0100 |
commit | dad01d2cf14a7e0bdca455040fb5a173775cefdc (patch) | |
tree | 6d5dc3934afa9bc3a365b0352f899dc4a84ac004 | |
parent | 512eb552e0ca740e1d285dc1b66a56579bcf68ec (diff) | |
download | vyos-cloud-init-dad01d2cf14a7e0bdca455040fb5a173775cefdc.tar.gz vyos-cloud-init-dad01d2cf14a7e0bdca455040fb5a173775cefdc.zip |
Python 2.6 fixes.
-rw-r--r-- | cloudinit/sources/helpers/azure.py | 4 |
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'}, ) |