diff --git a/plugins/modules/ipa_host.py b/plugins/modules/ipa_host.py index 557172645a..401ec904bf 100644 --- a/plugins/modules/ipa_host.py +++ b/plugins/modules/ipa_host.py @@ -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: