mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
modules s[a-e]*: use f-strings (#10976)
* modules s[a-e]*: use f-strings * add changelog frag
This commit is contained in:
@@ -83,7 +83,7 @@ def main():
|
||||
if executable:
|
||||
break
|
||||
else:
|
||||
module.fail_json(msg='Unable to find either %s' % ', '.join(possibles))
|
||||
module.fail_json(msg=f"Unable to find either {', '.join(possibles)}")
|
||||
|
||||
if module.check_mode:
|
||||
module.exit_json(msg=msg, changed=False)
|
||||
|
||||
Reference in New Issue
Block a user