You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/05/06 22:50:04 UTC
svn commit: r941916 - /incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
Author: pquerna
Date: Thu May 6 20:50:04 2010
New Revision: 941916
URL: http://svn.apache.org/viewvc?rev=941916&view=rev
Log:
Use added_web as the key to find the create'd node's name
Modified:
incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
Modified: incubator/libcloud/trunk/libcloud/drivers/dreamhost.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/dreamhost.py?rev=941916&r1=941915&r2=941916&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/dreamhost.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/dreamhost.py Thu May 6 20:50:04 2010
@@ -153,10 +153,9 @@ class DreamhostNodeDriver(NodeDriver):
'size' : size
}
data = self.connection.request('/', params).object
- # TODO: Is this ID the same as what list_nodes returns?
return Node(
- id = data['added_' + kwargs['image'].name],
- name = data['added_' + kwargs['image'].name],
+ id = data['added_web'],
+ name = data['added_web'],
state = NodeState.PENDING,
public_ip = [],
private_ip = [],