|
|
@ -104,7 +104,7 @@ def main():
|
|
|
|
host = get_all_objs(content, [vim.HostSystem])
|
|
|
|
host = get_all_objs(content, [vim.HostSystem])
|
|
|
|
if not host:
|
|
|
|
if not host:
|
|
|
|
module.fail_json(msg="Unable to locate Physical 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)
|
|
|
|
changed = configure_vmkernel_ip_address(host_system, vmk_name, ip_address, subnet_mask)
|
|
|
|
module.exit_json(changed=changed)
|
|
|
|
module.exit_json(changed=changed)
|
|
|
|
except vmodl.RuntimeFault as runtime_fault:
|
|
|
|
except vmodl.RuntimeFault as runtime_fault:
|
|
|
|