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/ff08c115 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ff08c115 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ff08c115 Branch: refs/heads/trunk Commit: ff08c115d5285ffc85771f8e2d561bdd5220dbe5 Parents: 101f77f Author: Juan Font Alonso <juanfontalo...@gmail.com> Authored: Fri Jun 24 10:39:55 2016 +0200 Committer: Juan Font Alonso <juanfontalo...@gmail.com> Committed: Fri Jun 24 10:39:55 2016 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/vcloud.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/ff08c115/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)