mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 22:19:02 +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
|
|
@ -223,7 +223,7 @@ def main():
|
|||
# Stdout is normally empty but for some packages can be
|
||||
# very long and is not often useful
|
||||
if len(out) > 75:
|
||||
out = out[:75] + '...'
|
||||
out = f"{out[:75]}..."
|
||||
|
||||
elif state == 'absent':
|
||||
if package_installed(module, name, category):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue