Skip to content

Commit 6bde749

Browse files
authored
Fix failure of vm reconfiguration with enabled virt_based_security (#1848)
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 Reviewed-by: Mario Lenz <m@riolenz.de>
1 parent 754e6c1 commit 6bde749

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+
minor_changes:
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
@@ -1672,7 +1672,7 @@ def configure_hardware_params(self, vm_obj):
16721672

16731673
virt_based_security = self.params['hardware']['virt_based_security']
16741674
if virt_based_security is not None:
1675-
if vm_obj is None or virt_based_security != self.configspec.flags.vbsEnabled:
1675+
if vm_obj is None or virt_based_security != vm_obj.config.flags.vbsEnabled:
16761676
self.change_detected = True
16771677
if self.configspec.flags is None:
16781678
self.configspec.flags = vim.vm.FlagInfo()

0 commit comments

Comments
 (0)