mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-13 03:44:02 -07:00
Securize the index based lookup of dict.keys() (#54452)
This commit is contained in:
parent
4a5b9bd8eb
commit
cf2f13e05d
4 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ def main():
|
|||
host = get_all_objs(content, [vim.HostSystem])
|
||||
if not host:
|
||||
module.fail_json(msg="Unable to locate Physical Host.")
|
||||
host_system = host.keys()[0]
|
||||
host_system = list(host)[0]
|
||||
changed, result, cluster_uuid = create_vsan_cluster(host_system, new_cluster_uuid)
|
||||
module.exit_json(changed=changed, result=result, cluster_uuid=cluster_uuid)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue