From d5a4a401ea44d267c5525208d83644b9b0a63897 Mon Sep 17 00:00:00 2001 From: Andrea Tartaglia Date: Tue, 6 Nov 2018 12:17:07 +0000 Subject: [PATCH] Added nonstring='passthru' when calling to_native to avoid passing a 'None' string to the ipa client (#48157) --- lib/ansible/modules/identity/ipa/ipa_dnsrecord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/identity/ipa/ipa_dnsrecord.py b/lib/ansible/modules/identity/ipa/ipa_dnsrecord.py index 942d7b51208..eeb7c2502c3 100644 --- a/lib/ansible/modules/identity/ipa/ipa_dnsrecord.py +++ b/lib/ansible/modules/identity/ipa/ipa_dnsrecord.py @@ -211,7 +211,7 @@ def ensure(module, client): module_dnsrecord = dict( record_type=module.params['record_type'], record_value=module.params['record_value'], - record_ttl=to_native(record_ttl), + record_ttl=to_native(record_ttl, nonstring='passthru'), ) changed = False