Merge pull request #67152 from hurzhurz/fix-yumpkg

[3006.x] fix yumpkg for Python <3.8
This commit is contained in:
Daniel Wozniak 2025-02-20 02:42:23 -07:00 committed by GitHub
commit c212603305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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):