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 2012/04/19 23:56:17 UTC

svn commit: r1328128 - in /libcloud/trunk: libcloud/compute/drivers/vcloud.py test/compute/test_vcloud.py

Author: tomaz
Date: Thu Apr 19 21:56:17 2012
New Revision: 1328128

URL: http://svn.apache.org/viewvc?rev=1328128&view=rev
Log:
Fix the typo in the vCloud driver and re-enable the test. Part of LIBCLOUD-183,
submitted by Michal Galet.

Modified:
    libcloud/trunk/libcloud/compute/drivers/vcloud.py
    libcloud/trunk/test/compute/test_vcloud.py

Modified: libcloud/trunk/libcloud/compute/drivers/vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/vcloud.py?rev=1328128&r1=1328127&r2=1328128&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/vcloud.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/vcloud.py Thu Apr 19 21:56:17 2012
@@ -334,7 +334,7 @@ class VCloudNodeDriver(NodeDriver):
             networks.extend(
                 [network
                  for network in res.findall(
-                     fixxpath(res, 'AvailableNetwors/Network')
+                     fixxpath(res, 'AvailableNetworks/Network')
                  )]
             )
 

Modified: libcloud/trunk/test/compute/test_vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/test/compute/test_vcloud.py?rev=1328128&r1=1328127&r2=1328128&view=diff
==============================================================================
--- libcloud/trunk/test/compute/test_vcloud.py (original)
+++ libcloud/trunk/test/compute/test_vcloud.py Thu Apr 19 21:56:17 2012
@@ -99,7 +99,7 @@ class VCloud_1_5_Tests(unittest.TestCase
 
     def test_networks(self):
         ret = self.driver.networks
-        #self.assertEqual(ret[0].get('href'), 'https://vm-vcloud/api/network/dca8b667-6c8f-4c3e-be57-7a9425dba4f4')
+        self.assertEqual(ret[0].get('href'), 'https://vm-vcloud/api/network/dca8b667-6c8f-4c3e-be57-7a9425dba4f4')
 
     def test_create_node(self):
         image = self.driver.list_images()[0]