diff --git a/changelogs/fragments/ovirt_vm_fix_issue_in_SSO_option.yaml b/changelogs/fragments/ovirt_vm_fix_issue_in_SSO_option.yaml new file mode 100644 index 00000000000..9ac8ef8fdae --- /dev/null +++ b/changelogs/fragments/ovirt_vm_fix_issue_in_SSO_option.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ovirt_vm - Fix issue in SSO option (https://github.com/ansible/ansible/pull/47312). diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index 799aecb9f97..13d38b8bd11 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -1031,7 +1031,7 @@ class VmsModule(BaseModule): otypes.Sso( methods=[otypes.Method(id=otypes.SsoMethod.GUEST_AGENT)] if self.param('sso') else [] ) - ), + ) if self.param('sso') is not None else None, quota=otypes.Quota(id=self._module.params.get('quota_id')) if self.param('quota_id') is not None else None, high_availability=otypes.HighAvailability( enabled=self.param('high_availability'),