mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 01:13:00 +00:00
modules a*: use f-strings (#10942)
* modules a*: use f-strings * add changelog frag * add changelog frag * rename chglof frag file
This commit is contained in:
parent
0feabaa7da
commit
d86340b9d3
22 changed files with 219 additions and 214 deletions
|
|
@ -85,7 +85,7 @@ def apt_repo(module, *args):
|
|||
rc, out, err = module.run_command([APT_REPO_PATH] + args)
|
||||
|
||||
if rc != 0:
|
||||
module.fail_json(msg="'%s' failed: %s" % (' '.join(['apt-repo'] + args), err))
|
||||
module.fail_json(msg=f"'{' '.join(['apt-repo'] + args)}' failed: {err}")
|
||||
|
||||
return out
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue