You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/07/12 15:43:22 UTC

[libcloud] branch trunk updated (51687ee -> aa7a36f)

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git.


    from 51687ee  Merge pull request #1311 from micafer/ost_resize
     new 87bc405  Add changelog entry for #1311.
     new aa7a36f  For consistency reasons rename, ``ex_resize`` method in the OpenStack driver to ``ex_resize_node``.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGES.rst                           |  8 ++++++++
 libcloud/compute/drivers/openstack.py | 10 +++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)


[libcloud] 01/02: Add changelog entry for #1311.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 87bc405f5d1550ad9dfd68bb9884e5ba8abe3a4f
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Jul 12 17:39:21 2019 +0200

    Add changelog entry for #1311.
---
 CHANGES.rst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CHANGES.rst b/CHANGES.rst
index 430fd02..05deb19 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -78,6 +78,9 @@ Compute
   driver. (GITHUB-1281)
   [Miguel Caballer - @micafer]
 
+- [OpenStack] Fix ``ex_resize`` method. (GITHUB-1311)
+  [Miguel Caballer - @micafer]
+
 Storage
 ~~~~~~~
 


[libcloud] 02/02: For consistency reasons rename, ``ex_resize`` method in the OpenStack driver to ``ex_resize_node``.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit aa7a36f1795a850d3c588fb727ebc249c3fb7e5f
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Jul 12 17:41:15 2019 +0200

    For consistency reasons rename, ``ex_resize`` method in the OpenStack
    driver to ``ex_resize_node``.
---
 CHANGES.rst                           |  5 +++++
 libcloud/compute/drivers/openstack.py | 10 +++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index 05deb19..7321107 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -81,6 +81,11 @@ Compute
 - [OpenStack] Fix ``ex_resize`` method. (GITHUB-1311)
   [Miguel Caballer - @micafer]
 
+- [OpenStack] For consistency, rename ``ex_resize`` method to
+  ``ex_resize_node``. For backward compatibility reasons, leave ``ex_resize``
+  alias in place.
+  [Tomaz Muraus]
+
 Storage
 ~~~~~~~
 
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 977d1b5..1b14ca1 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -643,7 +643,7 @@ class OpenStack_1_0_NodeDriver(OpenStackNodeDriver):
         """
         return self._change_password_or_name(node, name=name)
 
-    def ex_resize(self, node, size):
+    def ex_resize_node(self, node, size):
         """
         Change an existing server flavor / scale the server up or down.
 
@@ -666,6 +666,14 @@ class OpenStack_1_0_NodeDriver(OpenStackNodeDriver):
                                        data=ET.tostring(elm))
         return resp.status == httplib.ACCEPTED
 
+    def ex_resize(self, node, size):
+        """
+        NOTE: This method is here for backward compatibility reasons.
+
+        You should use ``ex_resize_node`` instead.
+        """
+        return self.ex_resize_node(node=node, size=size)
+
     def ex_confirm_resize(self, node):
         """
         Confirm a resize request which is currently in progress. If a resize