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 60f8660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
3 changes: 2 additions & 1 deletion salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,8 @@ def install(
'version': '<new-version>',
'arch': '<new-arch>'}}}
"""
if (version := kwargs.get("version")) is not None:
version = kwargs.get("version")
if version is not None:
kwargs["version"] = str(version)
options = _get_options(**kwargs)

Expand Down

0 comments on commit 60f8660

Please sign in to comment.