replace batch 6 of redundant to_native()/to_text() occurrences (#11110)

* replace batch 6 of redundant to_native()/to_text() occurrences

* add changelog frag
This commit is contained in:
Alexei Znamensky
2025-11-13 09:43:39 +13:00
committed by GitHub
parent f785e9c780
commit 996d9a7f63
11 changed files with 30 additions and 52 deletions

View File

@@ -172,9 +172,7 @@ def main():
for cmd in command_list:
# Fail if even one command given is invalid
if cmd not in CATEGORY_COMMANDS_ALL[category]:
module.fail_json(
msg=to_native(f"Invalid Command '{cmd}'. Valid Commands = {CATEGORY_COMMANDS_ALL[category]}")
)
module.fail_json(msg=f"Invalid Command '{cmd}'. Valid Commands = {CATEGORY_COMMANDS_ALL[category]}")
# Build root URI(s)
if module.params.get("baseuri") is not None: