You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/06/25 23:37:41 UTC
[05/14] libcloud git commit: Use the same name everywhere.
Use the same name everywhere.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/819c851a
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/819c851a
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/819c851a
Branch: refs/heads/trunk
Commit: 819c851a3f5befb51ee55b84108d2a0d8819765e
Parents: 8892bbc
Author: Juan Font Alonso <ju...@gmail.com>
Authored: Fri Jun 24 10:39:55 2016 +0200
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Jun 25 20:00:11 2016 +1000
----------------------------------------------------------------------
libcloud/compute/drivers/vcloud.py | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/819c851a/libcloud/compute/drivers/vcloud.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py
index c4ba456..d428cad 100644
--- a/libcloud/compute/drivers/vcloud.py
+++ b/libcloud/compute/drivers/vcloud.py
@@ -1022,34 +1022,35 @@ class VCloud_1_5_NodeDriver(VCloudNodeDriver):
else:
return False
- def ex_deploy_node(self, node, force_customization=False):
+ def ex_deploy_node(self, node, ex_force_customization=False):
"""
Deploys existing node. Equal to vApp "start" operation.
:param node: The node to be deployed
:type node: :class:`Node`
- :param force_customization: Used to specify whether to force
- customization on deployment,
- if not set default value is False.
- :type force_customization: ``bool``
+ :param ex_force_customization: Used to specify whether to force
+ customization on deployment,
+ if not set default value is False.
+ :type ex_force_customization: ``bool``
:rtype: :class:`Node`
"""
- if force_customization:
+ if ex_force_customization:
vms = self._get_vm_elements(node.id)
for vm in vms:
self._ex_deploy_node_or_vm(vm.get('href'),
- force_customization=True)
+ ex_force_customization=True)
else:
self._ex_deploy_node_or_vm(node.id)
res = self.connection.request(get_url_path(node.id))
return self._to_node(res.object)
- def _ex_deploy_node_or_vm(self, vapp_or_vm_path, force_customization=False):
+ def _ex_deploy_node_or_vm(self, vapp_or_vm_path,
+ ex_force_customization=False):
data = {'powerOn': 'true',
- 'forceCustomization': str(force_customization).lower(),
+ 'forceCustomization': str(ex_force_customization).lower(),
'xmlns': 'http://www.vmware.com/vcloud/v1.5'}
deploy_xml = ET.Element('DeployVAppParams', data)
path = get_url_path(vapp_or_vm_path)