Skip to content

Commit

Permalink
[backport][2.9] vmware_guest: Add support for HW version 15 (vSphere …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
mariolenz and Akasurde committed Sep 27, 2020
1 parent 7e8ecb2 commit d2b499e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -0,0 +1,2 @@
minor_changes:
- vmware_guest - Support HW version 15 / vSphere 6.7U2 (https://github.com/ansible-collections/vmware/pull/99).
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/vmware/vmware_guest.py
Expand Up @@ -1251,12 +1251,12 @@ def configure_hardware_params(self, vm_obj):
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
Expand Down

0 comments on commit d2b499e

Please sign in to comment.