Skip to content
Snippets Groups Projects
Unverified Commit aa4cc3bf authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #920 from rjeffman/ipaconfig_fix_fail_json

ipaconfig: Fix fail_json calls.
parents fa86cd29 4da89de1
No related branches found
No related tags found
No related merge requests found
...@@ -533,13 +533,14 @@ def main(): ...@@ -533,13 +533,14 @@ def main():
required_sid = any([netbios_name, add_sids]) required_sid = any([netbios_name, add_sids])
if required_sid and not enable_sid: if required_sid and not enable_sid:
ansible_module.fail_json( ansible_module.fail_json(
"'enable-sid: yes' required for 'netbios_name' " msg="'enable-sid: yes' required for 'netbios_name' "
"and 'add-sids'." "and 'add-sids'."
) )
if enable_sid: if enable_sid:
if not has_enable_sid: if not has_enable_sid:
ansible_module.fail_json( ansible_module.fail_json(
"This version of IPA does not support 'enable-sid'.") msg="This version of IPA does not support enable-sid."
)
if ( if (
netbios_name netbios_name
and netbios_name == get_netbios_name(ansible_module) and netbios_name == get_netbios_name(ansible_module)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment