mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
modules s[f-z]*: use f-strings (#10977)
* modules s[f-z]*: use f-strings * add changelog frag
This commit is contained in:
@@ -108,7 +108,7 @@ def sysupgrade_run(module):
|
||||
rc, out, err = module.run_command(cmd + run_flag)
|
||||
|
||||
if rc != 0:
|
||||
module.fail_json(msg="Command %s failed rc=%d, out=%s, err=%s" % (cmd, rc, out, err))
|
||||
module.fail_json(msg=f"Command {cmd} failed rc={rc}, out={out}, err={err}")
|
||||
elif out.lower().find('already on latest snapshot') >= 0:
|
||||
changed = False
|
||||
elif out.lower().find('upgrade on next reboot') >= 0:
|
||||
|
||||
Reference in New Issue
Block a user