mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Securize the index based lookup of dict.keys() (#54452)
This commit is contained in:
committed by
ansibot
parent
4a5b9bd8eb
commit
cf2f13e05d
@@ -104,7 +104,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 = configure_vmkernel_ip_address(host_system, vmk_name, ip_address, subnet_mask)
|
||||
module.exit_json(changed=changed)
|
||||
except vmodl.RuntimeFault as runtime_fault:
|
||||
|
||||
Reference in New Issue
Block a user