mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user