<div dir="ltr">So I've been playing around with cloud init scripts for VMs I have been building.<div><br></div><div>I have one example, which I isn't working. Got it from the following</div><div><a href="http://cloudinit.readthedocs.org/en/latest/topics/examples.html" rel="nofollow">http://cloudinit.readthedocs.org/en/latest/topics/examples.html</a><br></div><div><br></div><div>So, its for the reboot/power off section</div><div><br></div><div>I've stripped out my cloud-init to just the basics, taken right from the page. File contents are</div><div><div>power_state:</div><div> delay: "+30"</div><div> mode: poweroff</div><div> message: Bye Bye</div><div> timeout: 30</div></div><div><br></div><div>It doesn't work,  I noticed this line in my /var/log/cloud-init-output.log</div><div><br></div><div>__init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'power_state:\n delay: "+3...'<br></div><div><br></div><div><br></div><div>So I am thinking I need to define the format. I was looking at</div><div><br></div><div><a href="http://cloudinit.readthedocs.org/en/latest/topics/format.html">http://cloudinit.readthedocs.org/en/latest/topics/format.html</a><br></div><div><br></div><div>But the examples don't seem to show any of that. Pointers would be great. Thanks</div><div><br></div><div><br></div><div><br></div><div><br></div></div>