mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-30 15:38:53 +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:
parent
98aca27a8b
commit
23e81b8d30
22 changed files with 68 additions and 58 deletions
|
|
@ -171,7 +171,6 @@ description:
|
|||
import uuid
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule, env_fallback
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
|
||||
HAS_PACKET_SDK = True
|
||||
|
||||
|
|
@ -307,7 +306,7 @@ def main():
|
|||
try:
|
||||
module.exit_json(**act_on_volume(state, module, packet_conn))
|
||||
except Exception as e:
|
||||
module.fail_json(msg=f"failed to set volume state {state}: {to_native(e)}")
|
||||
module.fail_json(msg=f"failed to set volume state {state}: {e}")
|
||||
else:
|
||||
module.fail_json(msg=f"{state} is not a valid state for this module")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue