mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[PR #11106/f785e9c7 backport][stable-12] replace batch of redundant to_native()/to_text() occurrences (#11140)
replace batch of redundant to_native()/to_text() occurrences (#11106)
* replace batch of redundant to_native()/to_text() occurrences
* add changelog frag
* snap sanity
* rolling back snap for now
* more cases in redhat_subscription
(cherry picked from commit f785e9c780)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -158,7 +158,6 @@ import traceback
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible_collections.community.general.plugins.module_utils.ipa import IPAClient, ipa_argument_spec
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
|
||||
|
||||
class PwPolicyIPAClient(IPAClient):
|
||||
@@ -223,7 +222,7 @@ def get_pwpolicy_dict(
|
||||
|
||||
for option, value in pwpolicy_options.items():
|
||||
if value is not None:
|
||||
pwpolicy[option] = to_native(value)
|
||||
pwpolicy[option] = str(value)
|
||||
|
||||
for option, value in pwpolicy_boolean_options.items():
|
||||
if value is not None:
|
||||
|
||||
Reference in New Issue
Block a user