Merge branch '2015.8' into '2016.3'

No conflicts.
This commit is contained in:
rallytime 2016-10-12 13:30:09 -06:00
commit 1d3ce45ac0

View file

@ -76,9 +76,14 @@ def show_link(name):
salt '*' alternatives.show_link editor
'''
path = '/var/lib/dpkg/alternatives/{0}'.format(name)
if _get_cmd() == 'alternatives':
path = '/var/lib/alternatives/{0}'.format(name)
if __grains__['os_family'] == 'RedHat':
path = '/var/lib/'
elif __grains__['os_family'] == 'Suse':
path = '/var/lib/rpm/'
else:
path = '/var/lib/dpkg/'
path += 'alternatives/{0}'.format(name)
try:
with salt.utils.fopen(path, 'rb') as r_file: