mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 18:56:55 +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
|
|
@ -1056,7 +1056,7 @@ def main():
|
|||
# execute only if we find a System resource
|
||||
result = rf_utils._find_systems_resource()
|
||||
if result["ret"] is False:
|
||||
module.fail_json(msg=to_native(result["msg"]))
|
||||
module.fail_json(msg=result["msg"])
|
||||
|
||||
for command in command_list:
|
||||
if command.startswith("Power"):
|
||||
|
|
@ -1082,7 +1082,7 @@ def main():
|
|||
elif category == "Chassis":
|
||||
result = rf_utils._find_chassis_resource()
|
||||
if result["ret"] is False:
|
||||
module.fail_json(msg=to_native(result["msg"]))
|
||||
module.fail_json(msg=result["msg"])
|
||||
|
||||
led_commands = ["IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink"]
|
||||
|
||||
|
|
@ -1113,7 +1113,7 @@ def main():
|
|||
# execute only if we find a Manager service resource
|
||||
result = rf_utils._find_managers_resource()
|
||||
if result["ret"] is False:
|
||||
module.fail_json(msg=to_native(result["msg"]))
|
||||
module.fail_json(msg=result["msg"])
|
||||
|
||||
for command in command_list:
|
||||
# standardize on the Power* commands, but allow the legacy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue