mirror of
https://github.com/saltstack/salt.git
synced 2025-04-10 14:51:40 +00:00
fix yumpkg for Python <3.8
This commit is contained in:
parent
bc007e3c55
commit
634d5d11df
2 changed files with 3 additions and 2 deletions
1
changelog/67091.fixed.md
Normal file
1
changelog/67091.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Fix yumpkg module for Python<3.8
|
|
@ -1425,8 +1425,8 @@ def install(
|
|||
'version': '<new-version>',
|
||||
'arch': '<new-arch>'}}}
|
||||
"""
|
||||
if (version := kwargs.get("version")) is not None:
|
||||
kwargs["version"] = str(version)
|
||||
if kwargs.get("version") is not None:
|
||||
kwargs["version"] = str(kwargs["version"])
|
||||
options = _get_options(**kwargs)
|
||||
|
||||
if salt.utils.data.is_true(refresh):
|
||||
|
|
Loading…
Add table
Reference in a new issue