Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure of vm reconfiguration with enabled virt_based_security #1848

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- vmware_guest - Fix failure of vm reconfiguration with enabled virt_based_security
(https://github.com/ansible-collections/community.vmware/pull/1848).
2 changes: 1 addition & 1 deletion plugins/modules/vmware_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ def configure_hardware_params(self, vm_obj):

virt_based_security = self.params['hardware']['virt_based_security']
if virt_based_security is not None:
if vm_obj is None or virt_based_security != self.configspec.flags.vbsEnabled:
if vm_obj is None or virt_based_security != vm_obj.config.flags.vbsEnabled:
self.change_detected = True
if self.configspec.flags is None:
self.configspec.flags = vim.vm.FlagInfo()
Expand Down