[backport][2.9] vmware_guest: Add support for HW version 15 (vSphere 6.7U2) (#71565)

* vmware_guest: Add support for HW version 15 (vSphere 6.7U2)

* Update changelogs/fragments/71563-vmware_guest-support_hw_version_15.yml

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/71986/head
Mario Lenz 5 years ago committed by GitHub
parent 7e8ecb2e58
commit d2b499eab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- vmware_guest - Support HW version 15 / vSphere 6.7U2 (https://github.com/ansible-collections/vmware/pull/99).

@ -1251,12 +1251,12 @@ class PyVmomiHelper(PyVmomi):
except ValueError:
hw_version_check_failed = True
if temp_version not in range(3, 15):
if temp_version not in range(3, 16):
hw_version_check_failed = True
if 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 14 (ESXi 6.5 and greater)." % temp_version)
" values range from 3 (ESX 2.x) to 15 (ESXi 6.7U2 and greater)." % temp_version)
# Hardware version is denoted as "vmx-10"
version = "vmx-%02d" % temp_version
self.configspec.version = version

Loading…
Cancel
Save