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
Can we remove the hardware version number check in vmware_guest module? or find another better way to do this? or we need to change this restriction every time after vSphere new releases and new hardware version introduced.
ISSUE TYPE
Bug Report
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
try:
temp_version = int(temp_version)except ValueError:
hw_version_check_failed = Trueif temp_version not in range(3, 18):
hw_version_check_failed = Trueif hw_version_check_failed:
self.module.fail_json(msg="Failed to set hardware.version '%s' value as valid"" values range from 3 (ESX 2.x) to 17 (ESXi 7.0)."% temp_version)
EXPECTED RESULTS
We do not need to change this range(3, 18) every time when there is new hardware version introduced in new vSphere release, e.g., hardware version 18, 19, etc.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered:
I agree, this check doesn't make much sense. Even if the version is theoretically valid, it doesn't mean the module will work. Like using version 18 but the vCenter or ESXi is 6.5. I think we should just remove this check.
SUMMARY
Can we remove the hardware version number check in vmware_guest module? or find another better way to do this? or we need to change this restriction every time after vSphere new releases and new hardware version introduced.
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
We do not need to change this
range(3, 18)
every time when there is new hardware version introduced in new vSphere release, e.g., hardware version 18, 19, etc.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: