mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
@@ -323,7 +323,7 @@ def run():
|
||||
filter.append(job)
|
||||
result = filter
|
||||
if not filter:
|
||||
module.fail_json(msg="Couldn't find Job with id " + str(module.params.get('name')))
|
||||
module.fail_json(msg=f"Couldn't find Job with id {module.params['name']}")
|
||||
except Exception as e:
|
||||
module.fail_json(msg=to_native(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user