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
6a256a59a1
commit
27844363dd
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def _get_hold(line, pattern=__HOLD_PATTERN, full=True):
|
|||
else:
|
||||
lock_re = rf"(\d+:{pattern}-\S+)"
|
||||
else:
|
||||
if _yum() == "dnf" or _yum() == "dnf5":
|
||||
if _yum() in ("dnf", "dnf5"):
|
||||
lock_re = rf"({pattern}-\S+)"
|
||||
else:
|
||||
lock_re = rf"\d+:({pattern}-\S+)"
|
||||
|
|
Loading…
Add table
Reference in a new issue