mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix datacenter_name and cluster_name module params (#2142)
This commit is contained in:
parent
913afa9a99
commit
a7fe4cee03
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue