mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix #47502: Remove an extraneous (accidentally introduced?) call to rstrip.
This commit is contained in:
parent
17cfd4f7cf
commit
821dbb88a0
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def _switch(name, # pylint: disable=C0103
|
|||
if os.path.exists(config):
|
||||
with salt.utils.files.fopen(config, 'r') as ifile:
|
||||
for line in ifile:
|
||||
line = salt.utils.stringutils.to_unicode(line).rstrip('\n')
|
||||
line = salt.utils.stringutils.to_unicode(line)
|
||||
if not line.startswith('{0}='.format(rcvar)):
|
||||
nlines.append(line)
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue