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:
Alexei Znamensky
2025-10-23 17:50:32 +13:00
committed by GitHub
parent 0feabaa7da
commit d86340b9d3
22 changed files with 219 additions and 214 deletions

View File

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