Cloud config files no CR/LF
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudbase-init |
New
|
Undecided
|
Unassigned |
Bug Description
Windows Server 2012 R2 Cloudbase-init 0.9.12
When using write-files option of cloud config files are being created but CR/LF are being ignored and output is being treated as a single line per file.
Example
#cloud-config
write_files:
- path: 'C:\temp\test.xml'
content: |
<Test>
<myIndent>
</Test>
- path: 'C:\temp\
content: |
<?xml version="1.0" encoding="utf-8"?>
<
<add key="one" value="one" />
<add key="two" value="two" />
<add key="three" value="three" />
<
- path: 'C:\temp\
content: |
# This is multi line windows text file.
# This should be on a new line.
# This file may contain comment lines using hash signs (like this one). Other lines
# must consist of the following: IP address or range in CIDR notation
#
#LocalLink Address
169.
# Localhost
127.0.0.1/8
# another IP
10.0.0.0/16
# evryoneknowsthis
4.4.4.4
*******
This results in the following example corrupted output
# This is multi line windows text file. # This should be on a new line.# This file may contain comment lines using hash signs (like this one). Other lines# must consist of the following: IP address or range in CIDR notation##LocalLink Address......
Not sure if it helps but if I copy the contents of the files from the windows server and then past here or in a more intelligent (linux aware) editor they then do paste correctly