Merge pull request #42851 from terminalmage/bp-42651

Backport #42651 to 2016.11
This commit is contained in:
Nicole Thomas 2017-08-10 14:02:38 -04:00 committed by GitHub
commit 2dde1f77e9

View File

@ -180,6 +180,15 @@ 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-plugin-versionlock'
else:
vl_plugin = 'python2-dnf-plugin-versionlock'
else:
if six.PY3:
vl_plugin = 'python3-dnf-plugins-extras-versionlock'
else:
vl_plugin = 'python-dnf-plugins-extras-versionlock'
else:
vl_plugin = 'yum-versionlock' \