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 2016/10/08 02:30:52 UTC

[21/27] libcloud git commit: mod return in parse_error

mod return in parse_error


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

Branch: refs/heads/trunk
Commit: 613c6690bb7cb622f8746b22c90303837198a56a
Parents: c3ffcf1
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Thu Oct 6 21:54:04 2016 -0400
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Oct 8 13:29:22 2016 +1100

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/613c6690/libcloud/container/drivers/rancher.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/rancher.py b/libcloud/container/drivers/rancher.py
index a7abf2d..6e187d9 100644
--- a/libcloud/container/drivers/rancher.py
+++ b/libcloud/container/drivers/rancher.py
@@ -41,7 +41,7 @@ class RancherResponse(JsonResponse):
     def parse_error(self):
         if self.status == 401:
             raise InvalidCredsError('Invalid credentials')
-        return self.body
+        return super().parse_error()
 
     def success(self):
         return self.status in VALID_RESPONSE_CODES