1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-15 08:21:31 +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:
Alexei Znamensky 2025-10-26 22:34:24 +13:00 committed by GitHub
parent 32dd5f04c5
commit 73452acf84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 243 additions and 280 deletions

View file

@ -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)