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 <[email protected]> Authored: Sat Mar 26 20:42:04 2016 +1100 Committer: anthony-shaw <[email protected]> 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?
