From d2346fd2e2db46e249a9e5e17a9ea92e7558e330 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 27 Jul 2015 15:34:51 -0700 Subject: [PATCH] Python2.4 compat fix --- lib/ansible/module_utils/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index 86e92183ca1..84f78f8d530 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({})