~smoser/cloud-init/azure_dhcp

Viewing all changes in revision 1245.

  • Committer: Scott Moser
  • Date: 2016-06-22 14:08:29 UTC
  • mfrom: (1244.1.2 trunk.1532072)
  • Revision ID: smoser@ubuntu.com-20160622140829-imvf1qyjspe3cfl9
user_data: fix error when user-data is not utf-8 decodable

when user-data was not decodable, cloud-init would raise exception.
This also changes the signature of user_data.convert_string.
The 'headers' argument was never used, and woudl have been broken
if it was, as it was expected to be a dictionary but then was
passed in with *headers.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: