mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
c126f2e132
commit
13eb463bd9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue