Fixup alterernatives module

This was including the newline which was causing the state modifications present in #36676 to fail in alternatives integration tests which were introduced in 2016.3
This commit is contained in:
Mike Place 2016-10-05 18:28:21 +09:00
parent c126f2e132
commit 13eb463bd9
No known key found for this signature in database
GPG key ID: 9136F4F13705CFD3

View file

@ -82,7 +82,7 @@ def show_link(name):
try:
with salt.utils.fopen(path, 'rb') as r_file:
return r_file.readlines()[1]
return r_file.readlines()[1],rstrip('\n')
except OSError:
log.error(
'alternatives: {0} does not exist'.format(name)