mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
@@ -282,7 +282,7 @@ def run(module):
|
||||
msg = 'ACL token deleted.'
|
||||
changed = True
|
||||
else:
|
||||
msg = "No token with name '{0}' found".format(module.params.get('name'))
|
||||
msg = f"No token with name '{module.params['name']}' found"
|
||||
|
||||
except Exception as e:
|
||||
module.fail_json(msg=to_native(e))
|
||||
|
||||
Reference in New Issue
Block a user