tonybaloney rm parse_error sugg
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4b497e68 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4b497e68 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4b497e68 Branch: refs/heads/trunk Commit: 4b497e684656f125117ef7012455c31f3928622e Parents: 613c669 Author: Mario Loria <ma...@arroyonetworks.com> Authored: Thu Oct 6 22:19:15 2016 -0400 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Sat Oct 8 13:29:22 2016 +1100 ---------------------------------------------------------------------- libcloud/container/drivers/rancher.py | 5 ----- 1 file changed, 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/4b497e68/libcloud/container/drivers/rancher.py ---------------------------------------------------------------------- diff --git a/libcloud/container/drivers/rancher.py b/libcloud/container/drivers/rancher.py index 6e187d9..f627692 100644 --- a/libcloud/container/drivers/rancher.py +++ b/libcloud/container/drivers/rancher.py @@ -38,11 +38,6 @@ VALID_RESPONSE_CODES = [httplib.OK, httplib.ACCEPTED, httplib.CREATED, class RancherResponse(JsonResponse): - def parse_error(self): - if self.status == 401: - raise InvalidCredsError('Invalid credentials') - return super().parse_error() - def success(self): return self.status in VALID_RESPONSE_CODES