libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [02/33] libcloud git commit: Remove the double connect hack
Date Tue, 05 Apr 2016 11:16:53 GMT
Remove the double connect hack


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

Branch: refs/heads/requests
Commit: 649c70e7029118d82128f2f6e35a22ca8f85be74
Parents: cb0f499
Author: anthony-shaw <anthony.p.shaw@gmail.com>
Authored: Sat Mar 26 20:42:04 2016 +1100
Committer: anthony-shaw <anthony.p.shaw@gmail.com>
Committed: Sat Mar 26 20:42:04 2016 +1100

----------------------------------------------------------------------
 libcloud/common/base.py | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/649c70e7/libcloud/common/base.py
----------------------------------------------------------------------
diff --git a/libcloud/common/base.py b/libcloud/common/base.py
index 6f62e0d..ab642f3 100644
--- a/libcloud/common/base.py
+++ b/libcloud/common/base.py
@@ -602,9 +602,6 @@ class Connection(object):
         else:
             url = action
 
-        # Removed terrible hack...this a less-bad hack that doesn't execute a
-        # request twice, but it's still a hack.
-        self.connect()
         try:
             # @TODO: Should we just pass File object as body to request method
             # instead of dealing with splitting and sending the file ourselves?


Mime
View raw message