mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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:
@@ -180,14 +180,14 @@ def main():
|
||||
rc, output = install_package(module, depot, name)
|
||||
|
||||
if not rc:
|
||||
msg = "Package upgraded, Before " + version_installed + " Now " + version_depot
|
||||
msg = f"Package upgraded, Before {version_installed} Now {version_depot}"
|
||||
changed = True
|
||||
|
||||
else:
|
||||
module.fail_json(name=name, msg=output, rc=rc)
|
||||
|
||||
else:
|
||||
output = "Software package not in repository " + depot
|
||||
output = f"Software package not in repository {depot}"
|
||||
module.fail_json(name=name, msg=output, rc=rc)
|
||||
|
||||
elif state == 'absent' and installed is True:
|
||||
|
||||
Reference in New Issue
Block a user