libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erjoh...@apache.org
Subject [2/6] libcloud git commit: Fixed error when proxy_url is None.
Date Fri, 15 Jan 2016 15:49:00 GMT
Fixed error when proxy_url is None.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/1b3b91cd
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/1b3b91cd
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/1b3b91cd

Branch: refs/heads/0.20.1
Commit: 1b3b91cd0e96161b059c15ad2da183f500c3878e
Parents: 38b61eb
Author: Juan Font Alonso <juanfontalonso@gmail.com>
Authored: Thu Dec 10 14:44:43 2015 +0100
Committer: Eric Johnson <erjohnso@google.com>
Committed: Fri Jan 15 15:22:15 2016 +0000

----------------------------------------------------------------------
 libcloud/compute/drivers/vcloud.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/1b3b91cd/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py
index efe33e4..caf462a 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -848,7 +848,8 @@ class VCloud_1_5_Connection(VCloudConnection):
                      'application/vnd.vmware.vcloud.orgList+xml')).get('href')
             )
 
-            self.connection.set_http_proxy(self.proxy_url)
+            if self.proxy_url:
+                self.connection.set_http_proxy(self.proxy_url)
             self.connection.request(method='GET', url=org_list_url,
                                     headers=self.add_default_headers({}))
             body = ET.XML(self.connection.getresponse().read())


Mime
View raw message