We're apparently unable to have an empty last line in yaml literal strings.

This commit is contained in:
Pedro Algarvio 2012-11-04 11:46:00 +00:00
parent 5af62d01ac
commit 33fa855bc4
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,4 @@
/tmp/salttest/issue-1879:
file.append:
- text: |
# set variable identifying the chroot you work in (used in the prompt below)

View file

@ -117,8 +117,11 @@ fi
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
'''
# Delete if exiting
if os.path.isfile('/tmp/salttest/issue-1879'):
os.unlink('/tmp/salttest/issue-1879')
# Create the file
self.run_function('state.sls', mods='issue-1879')
# The first append