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 2017/04/06 02:07:27 UTC

[1/3] libcloud git commit: remove weird __init__ code from the linode response class, use super

Repository: libcloud
Updated Branches:
  refs/heads/trunk c62d7c9d6 -> fce25cd6a


remove weird __init__ code from the linode response class, use super


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

Branch: refs/heads/trunk
Commit: af5b3b8044eeff10ef119db5a3852d171aedc2bd
Parents: c62d7c9
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 6 11:58:35 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 6 11:58:35 2017 +1000

----------------------------------------------------------------------
 libcloud/common/linode.py | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/af5b3b80/libcloud/common/linode.py
----------------------------------------------------------------------
diff --git a/libcloud/common/linode.py b/libcloud/common/linode.py
index c991695..8abafb6 100644
--- a/libcloud/common/linode.py
+++ b/libcloud/common/linode.py
@@ -82,26 +82,8 @@ class LinodeResponse(JsonResponse):
 
         :keyword response: The raw response returned by urllib
         :return: parsed :class:`LinodeResponse`"""
-
-        self.connection = connection
-
-        self.headers = dict(response.getheaders())
-        self.error = response.reason
-        self.status = response.status
-
-        # This attribute is set when using LoggingConnection.
-        original_data = getattr(response, '_original_data', None)
-
-        if original_data:
-            # LoggingConnection already decompresses data so it can log it
-            # which means we don't need to decompress it here.
-            self.body = response._original_data
-        else:
-            self.body = self._decompress_response(body=response.read(),
-                                                  headers=self.headers)
-
-        if PY3:
-            self.body = b(self.body).decode('utf-8')
+        self.errors = []
+        super(LinodeResponse, self).__init__(response, connection)
 
         self.invalid = LinodeException(0xFF,
                                        "Invalid JSON received from server")


[2/3] libcloud git commit: remove unused imports

Posted by an...@apache.org.
remove unused imports


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

Branch: refs/heads/trunk
Commit: 2ed37b31588a769f6fa15bc8b9b3c694522a0e9a
Parents: af5b3b8
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 6 12:01:03 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 6 12:01:03 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2ed37b31/libcloud/common/linode.py
----------------------------------------------------------------------
diff --git a/libcloud/common/linode.py b/libcloud/common/linode.py
index 8abafb6..7c120e3 100644
--- a/libcloud/common/linode.py
+++ b/libcloud/common/linode.py
@@ -16,9 +16,6 @@
 from libcloud.common.base import ConnectionKey, JsonResponse
 from libcloud.common.types import InvalidCredsError
 
-from libcloud.utils.py3 import PY3
-from libcloud.utils.py3 import b
-
 __all__ = [
     'API_HOST',
     'API_ROOT',


[3/3] libcloud git commit: changes for #1026

Posted by an...@apache.org.
changes for #1026


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

Branch: refs/heads/trunk
Commit: fce25cd6ae2cfcbeb2614b47994a7f4df50c9a04
Parents: 2ed37b3
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 6 12:07:17 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 6 12:07:17 2017 +1000

----------------------------------------------------------------------
 CHANGES.rst | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/fce25cd6/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 07b992b..f2b1c5f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -12,6 +12,10 @@ Common
   [GITHUB-970]
   (Anthony Shaw)
 
+- Fix for Linode classes since 2.0x
+  [GITHUB-1026]
+  (Anthony Shaw)
+
 Compute
 ~~~~~~~