Ask Your Question

Revision history [back]

Cloudbase-Init is removing all line breaks

whenever i attach a script to a server using the --user-data parameter in combination with --config-drive True the script file on the server is without any line breaks:

#ps1_sysnative
$ErrorActionPreference = "Stop"

"$(Get-Date) - Test" | Out-File 'C:\test.log' -Append

will be

#ps1_sysnative$ErrorActionPreference = "Stop""$(Get-Date) - Test" | Out-File 'C:\test.log' -Append

on the server D:\openstack\latest\user-data. Obviously the script will not be executed, how can i fix this issue? is there any encoding I have to be aware?