fix yumpkg for Python <3.8

This commit is contained in:
hurzhurz 2025-01-15 15:02:25 +00:00 committed by Daniel Wozniak
parent bc007e3c55
commit 634d5d11df
2 changed files with 3 additions and 2 deletions

1
changelog/67091.fixed.md Normal file
View file

@ -0,0 +1 @@
Fix yumpkg module for Python<3.8

View file

@ -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):