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/01/05 01:31:34 UTC
svn commit: r895839 - /incubator/libcloud/trunk/libcloud/drivers/vcloud.py
Author: pquerna
Date: Tue Jan 5 00:31:33 2010
New Revision: 895839
URL: http://svn.apache.org/viewvc?rev=895839&view=rev
Log:
Update vcloud driver for new create_node API
Modified:
incubator/libcloud/trunk/libcloud/drivers/vcloud.py
Modified: incubator/libcloud/trunk/libcloud/drivers/vcloud.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/vcloud.py?rev=895839&r1=895838&r2=895839&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/vcloud.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/vcloud.py Tue Jan 5 00:31:33 2010
@@ -436,7 +436,7 @@
return images
- def create_node(self, name, image, size, **kwargs):
+ def create_node(self, **kwargs):
"""Creates and returns node.
Non-standard optional keyword arguments:
@@ -447,6 +447,10 @@
row
group
"""
+ name = kwargs['name']
+ image = kwargs['image']
+ size = kwargs['size']
+
# Some providers don't require a network link
try:
network = kwargs.get('network', self.networks[0].get('href'))