mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
make sure names are correct
This commit is contained in:
parent
f179b97b52
commit
178cc1bd81
@ -181,12 +181,16 @@ def _check_versionlock():
|
||||
Ensure that the appropriate versionlock plugin is present
|
||||
'''
|
||||
if _yum() == 'dnf':
|
||||
if six.PY3:
|
||||
vl_plugin = 'python3-dnf-plugins-extras-versionlock'
|
||||
elif int(__grains__.get('osmajorrelease')) < 26:
|
||||
vl_plugin = 'python-dnf-plugins-extras-versionlock'
|
||||
elif int(__grains__.get('osmajorrelease')) >= 26:
|
||||
if six.PY3:
|
||||
vl_plugin = 'python3-dnf-plugin-versionlock'
|
||||
else:
|
||||
vl_plugin = 'python2-dnf-plugin-versionlock'
|
||||
else:
|
||||
vl_plugin = 'python2-dnf-plugins-extras-versionlock'
|
||||
if six.PY3:
|
||||
vl_plugin = 'python3-dnf-plugins-extras-versionlock'
|
||||
else:
|
||||
vl_plugin = 'python-dnf-plugins-extras-versionlock'
|
||||
else:
|
||||
vl_plugin = 'yum-versionlock' \
|
||||
if __grains__.get('osmajorrelease') == '5' \
|
||||
|
Loading…
Reference in New Issue
Block a user