From 12f1c85aa36d46fc4593df2e4202f6c3f069004b Mon Sep 17 00:00:00 2001 From: krzwalko Date: Mon, 2 May 2016 14:50:11 +0200 Subject: [PATCH] Fix datacenter_name and cluster_name module params (#2142) --- cloud/vmware/vmware_vm_shell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cloud/vmware/vmware_vm_shell.py b/cloud/vmware/vmware_vm_shell.py index a2d5c71098e..da4a7f62217 100644 --- a/cloud/vmware/vmware_vm_shell.py +++ b/cloud/vmware/vmware_vm_shell.py @@ -146,11 +146,11 @@ def main(): if not HAS_PYVMOMI: module.fail_json(changed=False, msg='pyvmomi is required for this module') - datacenter_name = p['datacenter'] - cluster_name = p['cluster'] try: p = module.params + datacenter_name = p['datacenter'] + cluster_name = p['cluster'] content = connect_to_api(module) datacenter = None @@ -185,4 +185,3 @@ from ansible.module_utils.basic import * if __name__ == '__main__': main() -