Skip to content

Commit

Permalink
vmware_guest: Add support for HW version 15 (vSphere 6.7U2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Sep 1, 2020
1 parent 370ad5c commit afe4386
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
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 afe4386

Please sign in to comment.