mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 09:21:32 +00:00
[PR #11143/23e81b8d backport][stable-12] replace redundant to_native()/to_text() occurrences, batch 8 (#11164)
replace redundant to_native()/to_text() occurrences, batch 8 (#11143)
* replace redundant to_native()/to_text() occurrences, batch 8
* add changelog frag
* Update plugins/modules/jira.py
---------
(cherry picked from commit 23e81b8d30)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
15d4fff749
commit
8a7f360558
22 changed files with 68 additions and 58 deletions
|
|
@ -130,7 +130,6 @@ from ansible.module_utils.common.respawn import (
|
|||
probe_interpreters_for_module,
|
||||
respawn_module,
|
||||
)
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
from ansible_collections.community.general.plugins.module_utils import deps
|
||||
|
||||
glib_module_name = "gi.repository.GLib"
|
||||
|
|
@ -442,7 +441,7 @@ def main():
|
|||
if isinstance(module.params["value"], bool):
|
||||
module.params["value"] = "true" if module.params["value"] else "false"
|
||||
else:
|
||||
module.params["value"] = to_native(module.params["value"], errors="surrogate_or_strict")
|
||||
module.params["value"] = str(module.params["value"])
|
||||
|
||||
if Variant is None:
|
||||
module.warn(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue