mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 20:04:45 +00:00
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.
This commit is contained in:
@@ -173,7 +173,10 @@ def gen_args(module, state, action, dnsconfig, forwarders, forward_policy,
|
|||||||
_args['idnsforwardpolicy'] = forward_policy
|
_args['idnsforwardpolicy'] = forward_policy
|
||||||
|
|
||||||
if allow_sync_ptr is not None:
|
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
|
return _args
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user