You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2015/12/16 05:31:46 UTC

[2/2] libcloud git commit: Compare strictly to None

Compare strictly to None

Follow the coding standards better by using a strict comparison to None.
Closes #657


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

Branch: refs/heads/trunk
Commit: 66f1617393904b7dd160a73df32acab71ba708cb
Parents: f755d55
Author: Juan Font <ju...@gmail.com>
Authored: Thu Dec 10 15:03:14 2015 +0100
Committer: anthony-shaw <an...@gmail.com>
Committed: Wed Dec 16 15:30:49 2015 +1100

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/66f16173/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py
index caf462a..0d0f208 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -848,7 +848,7 @@ class VCloud_1_5_Connection(VCloudConnection):
                      'application/vnd.vmware.vcloud.orgList+xml')).get('href')
             )
 
-            if self.proxy_url:
+            if self.proxy_url is not None:
                 self.connection.set_http_proxy(self.proxy_url)
             self.connection.request(method='GET', url=org_list_url,
                                     headers=self.add_default_headers({}))