diff options
author | Nijin Ashok <nashok@redhat.com> | 2018-10-19 12:58:36 +0530 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-10-19 03:28:36 -0400 |
commit | c5d0461561e3fbdbc92786623f89044845f9d356 (patch) | |
tree | 43b83b29d3af459cde33911a714b23805f99b927 /lib/ansible/modules/cloud/ovirt | |
parent | b0c88ddab1cbd6bfbddb631690a1764e46e8c2e6 (diff) | |
download | ansible-c5d0461561e3fbdbc92786623f89044845f9d356.tar.gz |
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.
Diffstat (limited to 'lib/ansible/modules/cloud/ovirt')
-rw-r--r-- | lib/ansible/modules/cloud/ovirt/ovirt_vm.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |