mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user