Something broke for us in cloud-init 0.7.9. Turns out our user-data was
being interpreted as an octet-stream, as opposed to a cloud-config. Mark
it as a cloud-config, so that cloud-init will do the right thing once
more.
Signed-off-by: Zack Cerza <zack@redhat.com>
if os_type in ('ubuntu', 'fedora'):
user_info['packages'].append('python')
user_fd = tempfile.NamedTemporaryFile(delete=False)
- yaml.safe_dump(user_info, user_fd)
+ user_str = "#cloud-config\n" + yaml.safe_dump(user_info)
+ user_fd.write(user_str)
self.user_path = user_fd.name
return True