mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update salt/modules/yumpkg.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
parent
0ab67261b2
commit
bf27a19c96
1 changed files with 1 additions and 1 deletions
|
@ -2408,7 +2408,7 @@ def unhold(name=None, pkgs=None, sources=None, **kwargs): # pylint: disable=W06
|
|||
|
||||
ret[target] = {"name": target, "changes": {}, "result": False, "comment": ""}
|
||||
|
||||
if _yum() == "dnf" or _yum() == "dnf5":
|
||||
if _yum() in ("dnf", "dnf5"):
|
||||
search_locks = [x for x in current_locks if x == target]
|
||||
else:
|
||||
# To accommodate yum versionlock's lack of support for removing
|
||||
|
|
Loading…
Add table
Reference in a new issue