summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-07-27 15:34:51 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-07-27 15:34:51 -0700
commitd2346fd2e2db46e249a9e5e17a9ea92e7558e330 (patch)
treef4db99b3da2c0922ce45bededac0da91d219b3af
parent12e3a2a0c1bed9beb09b3890aa5f877fa10b86e0 (diff)
downloadansible-d2346fd2e2db46e249a9e5e17a9ea92e7558e330.tar.gz
Python2.4 compat fix
-rw-r--r--lib/ansible/module_utils/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py
index 86e92183ca..84f78f8d53 100644
--- a/lib/ansible/module_utils/urls.py
+++ b/lib/ansible/module_utils/urls.py
@@ -652,7 +652,7 @@ def open_url(url, data=None, headers=None, method=None, use_proxy=True,
if headers is None:
headers = {}
- headers["Authorization"] = "Basic {0}".format(base64.b64encode("{0}:{1}".format(username, password)))
+ headers["Authorization"] = "Basic %s" % base64.b64encode("%s:%s" % (username, password))
if not use_proxy:
proxyhandler = urllib2.ProxyHandler({})