vmware_guest without MAC address gather facts error #28471
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
cloud
module
This issue/PR relates to a module.
support:community
This issue/PR relates to code supported by the Ansible community.
vmware
VMware community
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
OS / ENVIRONMENT
"N/A"
SUMMARY
If the guest vm has no MAC address assigned to it (prior the first boot, th e MAC is empty), the guest module is unable to start the vm. The problem lies in the module_utils/vmware.py in the gather_vm_facts function (line 247). The error is:
I made the following workaround to make it work:
STEPS TO REPRODUCE
First the assigned MAC address should be removed from the VM. Then one can try to start the vm with the folloving task:
The text was updated successfully, but these errors were encountered: