mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 01:11:28 +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:
parent
73452acf84
commit
af246f8de3
29 changed files with 274 additions and 273 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue