Repository: libcloud
Updated Branches:
  refs/heads/trunk aebdd15ae -> 2bd37b687


Fix ex_unpause_node in openstack

ex_unpause_node in the OpenStack driver was calling the 'pause' action instead 
of the 'unpause' action.

Closes #317

Signed-off-by: Tomaz Muraus <to...@apache.org>


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

Branch: refs/heads/trunk
Commit: 2bd37b68757be4eaebecf9e70e716519a7b4207b
Parents: aebdd15
Author: Pablo Orduña <pablo.ord...@deusto.es>
Authored: Thu Jun 19 19:34:35 2014 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sat Jun 21 14:05:07 2014 +0200

----------------------------------------------------------------------
 CHANGES.rst                           | 4 ++++
 libcloud/compute/drivers/openstack.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2bd37b68/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 1897783..839a570 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -239,6 +239,10 @@ Compute
   argument to the ``create_volume`` method.
   [Tomaz Muraus]
 
+- Fix ex_unpause_node method in the OpenStack driver.
+  (GITHUB-317)
+  [Pablo Orduña]
+
 Storage
 ~~~~~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/2bd37b68/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py 
b/libcloud/compute/drivers/openstack.py
index 3742d52..c573feb 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -2311,7 +2311,7 @@ class OpenStack_1_1_NodeDriver(OpenStackNodeDriver):
 
     def ex_unpause_node(self, node):
         uri = '/servers/%s/action' % (node.id)
-        data = {'pause': None}
+        data = {'unpause': None}
         resp = self.connection.request(uri, method='POST', data=data)
         return resp.status == httplib.ACCEPTED
 

Reply via email to