You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/05/06 21:01:10 UTC

svn commit: r941856 - /incubator/libcloud/trunk/libcloud/drivers/vcloud.py

Author: jerry
Date: Thu May  6 19:01:10 2010
New Revision: 941856

URL: http://svn.apache.org/viewvc?rev=941856&view=rev
Log:
Remove unused assignments, exception variable

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=941856&r1=941855&r2=941856&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/vcloud.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/vcloud.py Thu May  6 19:01:10 2010
@@ -70,8 +70,10 @@ class InstantiateVAppXML(object):
         instantionation_params = ET.SubElement(self.root,
                                                "InstantiationParams")
 
-        product = self._make_product_section(instantionation_params)
-        virtual_hardware = self._make_virtual_hardware(instantionation_params)
+        # product and virtual hardware
+        self._make_product_section(instantionation_params)
+        self._make_virtual_hardware(instantionation_params)
+
         network_config_section = ET.SubElement(instantionation_params,
                                                "NetworkConfigSection")
 
@@ -384,7 +386,7 @@ class VCloudNodeDriver(NodeDriver):
             # The undeploy response is malformed XML atm.
             # We can remove this whent he providers fix the problem.
             pass
-        except Exception, e:
+        except Exception:
             # Some vendors don't implement undeploy at all yet,
             # so catch this and move on.
             pass