Skip to content

Commit

Permalink
fix yumpkg for Python <3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hurzhurz committed Jan 15, 2025
1 parent 65ba161 commit b5bb182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/67151.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix yumpkg module for Python<3.8
4 changes: 2 additions & 2 deletions salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b5bb182

Please sign in to comment.