mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add py3 for versionlock
This commit is contained in:
parent
21934f61bb
commit
f83b553d6e
1 changed files with 3 additions and 1 deletions
|
@ -180,7 +180,9 @@ def _check_versionlock():
|
|||
Ensure that the appropriate versionlock plugin is present
|
||||
'''
|
||||
if _yum() == 'dnf':
|
||||
if int(__grains__.get('osmajorrelease')) < 26:
|
||||
if six.PY3:
|
||||
vl_plugin = 'python3-dnf-plugins-extras-versionlock'
|
||||
elif int(__grains__.get('osmajorrelease')) < 26:
|
||||
vl_plugin = 'python-dnf-plugins-extras-versionlock'
|
||||
else:
|
||||
vl_plugin = 'python2-dnf-plugins-extras-versionlock'
|
||||
|
|
Loading…
Add table
Reference in a new issue