Skip to content

Commit fa0ba9b

Browse files
authored
stable-3.x: Fix failure of vm reconfiguration with enabled virt_based_security (#1980)
stable-3.x: Fix failure of vm reconfiguration with enabled virt_based_security SUMMARY VM reconfiguration is currently broken when virt_based_security is configured due to checking for vbsEnabled on the wrong object. ISSUE TYPE Bugfix Pull Request COMPONENT NAME vmware_guest ADDITIONAL INFORMATION Backport #1848
1 parent 5f59a93 commit fa0ba9b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bugfixes:
2+
- vmware_guest - Fix failure of vm reconfiguration with enabled virt_based_security
3+
(https://github.com/ansible-collections/community.vmware/pull/1848).

plugins/modules/vmware_guest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ def configure_hardware_params(self, vm_obj):
17191719

17201720
virt_based_security = self.params['hardware']['virt_based_security']
17211721
if virt_based_security is not None:
1722-
if vm_obj is None or virt_based_security != self.configspec.flags.vbsEnabled:
1722+
if vm_obj is None or virt_based_security != vm_obj.config.flags.vbsEnabled:
17231723
self.change_detected = True
17241724
if self.configspec.flags is None:
17251725
self.configspec.flags = vim.vm.FlagInfo()

0 commit comments

Comments
 (0)