New Question

Revision history [back]

click to hide/show revision 1
initial version

Newlines in UserData?


We have an inconsistency with a UserData script from a customer. It works against the evaluation Windows image provided by, but not against the Windows images we've created - both are Windows Server 2012 R2.

Our image has Cloudbase-init v0.9.9 and Python 3.4.3.

Now, I have been able to get the UserData script to run, but I had to change the newlines in it. So, the script that ran again the image had Unix newlines (\n), but against our image we needed Windows newlines (\r\n).

Is there something we're missing in our image to do the conversion, or to allow this to run?

Cheers, Andrew