mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
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 Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -521,7 +521,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 == "SetBiosDefaultSettings":
|
||||
@@ -547,7 +547,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:
|
||||
if command == "SetNetworkProtocols":
|
||||
@@ -563,7 +563,7 @@ def main():
|
||||
# execute only if we find a Sessions resource
|
||||
result = rf_utils._find_sessionservice_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 == "SetSessionService":
|
||||
|
||||
Reference in New Issue
Block a user