1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00

More formatting

This commit is contained in:
quasd 2026-02-10 16:01:17 +02:00 committed by GitHub
parent 1d4d249108
commit 9d997a4156
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -304,10 +304,7 @@ def ensure(module, client):
diff = get_host_diff(client, ipa_host, module_host)
host_needs_to_be_disabled = (
True
if (
ipa_host.get("has_keytab", True)
and (state == "disabled" or module.params.get("random_password"))
)
if (ipa_host.get("has_keytab", True) and (state == "disabled" or module.params.get("random_password")))
else False
)
if len(diff) > 0 or host_needs_to_be_disabled: