mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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>',
|
'version': '<new-version>',
|
||||||
'arch': '<new-arch>'}}}
|
'arch': '<new-arch>'}}}
|
||||||
"""
|
"""
|
||||||
if (version := kwargs.get("version")) is not None:
|
if kwargs.get("version") is not None:
|
||||||
kwargs["version"] = str(version)
|
kwargs["version"] = str(kwargs["version"])
|
||||||
options = _get_options(**kwargs)
|
options = _get_options(**kwargs)
|
||||||
|
|
||||||
if salt.utils.data.is_true(refresh):
|
if salt.utils.data.is_true(refresh):
|
||||||
|
|
Loading…
Add table
Reference in a new issue