From c5d0461561e3fbdbc92786623f89044845f9d356 Mon Sep 17 00:00:00 2001 From: Nijin Ashok Date: Fri, 19 Oct 2018 12:58:36 +0530 Subject: [PATCH] ovirt_vm: Fix issue in SSO option (#47312) Currently the module will disable the SSO if we didn't pass any value for SSO option. The PR fixes the same. --- lib/ansible/modules/cloud/ovirt/ovirt_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py index cbb5a0169b..f75748bcfb 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_vm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_vm.py @@ -1042,7 +1042,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'),