remove unneeded stuffs
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/17e078e3 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/17e078e3 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/17e078e3 Branch: refs/heads/trunk Commit: 17e078e3c614588b7b6c365336f44047c237e7bd Parents: 0e5bb66 Author: Mario Loria <ma...@arroyonetworks.com> Authored: Thu Sep 29 16:34:01 2016 -0400 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Sat Oct 8 13:29:22 2016 +1100 ---------------------------------------------------------------------- libcloud/container/drivers/rancher.py | 13 ------------- 1 file changed, 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/17e078e3/libcloud/container/drivers/rancher.py ---------------------------------------------------------------------- diff --git a/libcloud/container/drivers/rancher.py b/libcloud/container/drivers/rancher.py index e20b333..9ce8b5d 100644 --- a/libcloud/container/drivers/rancher.py +++ b/libcloud/container/drivers/rancher.py @@ -23,15 +23,6 @@ VALID_RESPONSE_CODES = [httplib.OK, httplib.ACCEPTED, httplib.CREATED, class RancherResponse(JsonResponse): - def parse_body(self): - if len(self.body) == 0 and not self.parse_zero_length_body: - return self.body - valid_content_types = ['application/json', - 'application/json; charset=utf-8'] - content_type = self.headers.get('content-type') - if content_type in valid_content_types: - return json.loads(self.body) - def parse_error(self): if self.status == 401: raise InvalidCredsError('Invalid credentials') @@ -134,10 +125,6 @@ class RancherContainerDriver(ContainerDriver): if host.startswith(prefix): host = host.strip(prefix) - self.connection.host = host - self.connection.port = port - self.connection.secure = secure - # We only support environment api keys, meaning none of this: # self.baseuri = "/v%s/projects/%s" % (self.version, project_id) self.baseuri = "/v%s" % self.version