You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running vmware_guest to create a new vm, we receive the error: TypeError: 'NoneType' object is not iterable in module_utiles/vmware.py line 1281.
This is cause because the actual_vm_folder_pathvariable is None. Which means the function get_vm_path returns None.
Going through the function we have concluded that vm_name.parent has returned None (we haven't yet found why).
As a short fix, my team changed these line with vm_obj = vms[0].
We work in an airgapped environment so it is more difficult to add logs, we hoped by opening this issue that an handler will be added for when the actual_vm_folder_path variable is empty.
ISSUE TYPE
Bug Report
COMPONENT NAME
vmware_guest
state: poweredon
Creating Virtual Machine
ANSIBLE VERSION
ansible-core 2.14
COLLECTION VERSION
latest (5.0.1), this issue happens in all previous versions
SUMMARY
When running vmware_guest to create a new vm, we receive the error:
TypeError: 'NoneType' object is not iterable
in module_utiles/vmware.py line 1281.This is cause because the
actual_vm_folder_path
variable is None. Which means the function get_vm_path returns None.Going through the function we have concluded that
vm_name.parent
has returned None (we haven't yet found why).As a short fix, my team changed these line with
vm_obj = vms[0]
.We work in an airgapped environment so it is more difficult to add logs, we hoped by opening this issue that an handler will be added for when the actual_vm_folder_path variable is empty.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
VSphere 8.0.3
RHEL 8/7 VM
STEPS TO REPRODUCE
EXPECTED RESULTS
A new vm was created in the folder specified
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: