libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [1/2] git commit: Update vCloud 'Powered Off' Node state mapping introduced in v0.14.0
Date Wed, 12 Feb 2014 15:41:54 GMT
Updated Branches:
  refs/heads/trunk 77fb3491e -> 38111c5ac


Update vCloud 'Powered Off' Node state mapping introduced in v0.14.0

vCloud state 8 is powered off, can be turned back on. NodeState.TERMINATED now means 'cant
be started later on'

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


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

Branch: refs/heads/trunk
Commit: e00db45fb3fdd490ea2fcae575d876b243e9d56e
Parents: 77fb349
Author: Ash Berlin <ash_github@firemirror.com>
Authored: Tue Feb 11 12:19:11 2014 +0000
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Wed Feb 12 16:34:23 2014 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/vcloud.py   | 2 +-
 libcloud/test/compute/test_vcloud.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e00db45f/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py
index 3b289d4..7bf78b4 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -947,7 +947,7 @@ class VCloud_1_5_NodeDriver(VCloudNodeDriver):
                       '5': NodeState.RUNNING,
                       '6': NodeState.UNKNOWN,
                       '7': NodeState.UNKNOWN,
-                      '8': NodeState.TERMINATED,
+                      '8': NodeState.STOPPED,
                       '9': NodeState.UNKNOWN,
                       '10': NodeState.UNKNOWN}
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e00db45f/libcloud/test/compute/test_vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_vcloud.py b/libcloud/test/compute/test_vcloud.py
index 2682cf3..787fa9f 100644
--- a/libcloud/test/compute/test_vcloud.py
+++ b/libcloud/test/compute/test_vcloud.py
@@ -208,13 +208,13 @@ class VCloud_1_5_Tests(unittest.TestCase, TestCaseMixin):
         node = self.driver.ex_undeploy_node(
             Node('https://test/api/vApp/undeployTest', 'testNode', state=0,
                  public_ips=[], private_ips=[], driver=self.driver))
-        self.assertEqual(node.state, NodeState.TERMINATED)
+        self.assertEqual(node.state, NodeState.STOPPED)
 
     def test_ex_undeploy_with_error(self):
         node = self.driver.ex_undeploy_node(
             Node('https://test/api/vApp/undeployErrorTest', 'testNode',
                  state=0, public_ips=[], private_ips=[], driver=self.driver))
-        self.assertEqual(node.state, NodeState.TERMINATED)
+        self.assertEqual(node.state, NodeState.STOPPED)
 
     def test_ex_find_node(self):
         node = self.driver.ex_find_node('testNode')


Mime
View raw message