Skip to content
Snippets Groups Projects
Commit 889b2a55 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

ipadnsconfig: Fixe comparison of bool values in IPA 4.9.10+

IPA 4.9.10+ handles LDAP boolean values correctly, and the comparison
should be executed with the values itself, instead of a string
representation.
parent e9d637c5
Branches
Tags
No related merge requests found
......@@ -173,7 +173,10 @@ def gen_args(module, state, action, dnsconfig, forwarders, forward_policy,
_args['idnsforwardpolicy'] = forward_policy
if allow_sync_ptr is not None:
_args['idnsallowsyncptr'] = 'TRUE' if allow_sync_ptr else 'FALSE'
if module.ipa_check_version("<", "4.9.10"):
_args['idnsallowsyncptr'] = "TRUE" if allow_sync_ptr else "FALSE"
else:
_args['idnsallowsyncptr'] = allow_sync_ptr
return _args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment