ovirt_vm: Fix issue in SSO option
Currently the module will disable the SSO if we didn't pass any value for SSO option. The PR fixes the same. Signed-off-by: Ondra Machacek <omachace@redhat.com>
This commit is contained in:
parent
1d60d34b82
commit
c91139bde3
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- ovirt_vm - Fix issue in SSO option (https://github.com/ansible/ansible/pull/47312).
|
|
@ -1031,7 +1031,7 @@ class VmsModule(BaseModule):
|
||||||
otypes.Sso(
|
otypes.Sso(
|
||||||
methods=[otypes.Method(id=otypes.SsoMethod.GUEST_AGENT)] if self.param('sso') else []
|
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,
|
quota=otypes.Quota(id=self._module.params.get('quota_id')) if self.param('quota_id') is not None else None,
|
||||||
high_availability=otypes.HighAvailability(
|
high_availability=otypes.HighAvailability(
|
||||||
enabled=self.param('high_availability'),
|
enabled=self.param('high_availability'),
|
||||||
|
|
Loading…
Reference in a new issue