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 2013/06/21 12:28:31 UTC
[2/6] git commit: LIBCLOUD-345: Fix CloudStack compute driver
create_node method to return CloudStackNode and add new expunging node state.
LIBCLOUD-345: Fix CloudStack compute driver create_node method to return
CloudStackNode and add new expunging node state.
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/0ee1974f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/0ee1974f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/0ee1974f
Branch: refs/heads/trunk
Commit: 0ee1974fb5618c04c47c29126a52a8c60a864961
Parents: 191392e
Author: Sebastien Goasguen <ru...@gmail.com>
Authored: Thu Jun 20 15:50:20 2013 -0400
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Jun 21 12:20:43 2013 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/cloudstack.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/0ee1974f/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py
index 7358b22..74799c6 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -118,7 +118,8 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
'Starting': NodeState.REBOOTING,
'Stopped': NodeState.TERMINATED,
'Stopping': NodeState.TERMINATED,
- 'Destroyed': NodeState.TERMINATED
+ 'Destroyed': NodeState.TERMINATED,
+ 'Expunging': NodeState.TERMINATED
}
def __init__(self, key, secret=None, secure=True, host=None,
@@ -277,7 +278,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
public_ips = []
private_ips = [nic['ipaddress'] for nic in node['nic']]
- return Node(
+ return CloudStackNode(
id=node['id'],
name=node['displayname'],
state=state,