mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
simplify string formatting in some modules (#10727)
* simplify string formatting in some modules * add changelog frag
This commit is contained in:
parent
3cc4f28fd7
commit
6f40eff632
10 changed files with 23 additions and 13 deletions
|
@ -576,7 +576,7 @@ def upgrade_packages(pkg_spec, module):
|
|||
pkg_spec['*'] = {}
|
||||
|
||||
# Attempt to upgrade all packages.
|
||||
pkg_spec['*']['rc'], pkg_spec['*']['stdout'], pkg_spec['*']['stderr'] = execute_command("%s" % upgrade_cmd, module)
|
||||
pkg_spec['*']['rc'], pkg_spec['*']['stdout'], pkg_spec['*']['stderr'] = execute_command(upgrade_cmd, module)
|
||||
|
||||
# Try to find any occurrence of a package changing version like:
|
||||
# "bzip2-1.0.6->1.0.6p0: ok".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue