~cloud-init-dev/cloud-init/trunk

Viewing all changes in revision 1091.

  • Committer: Scott Moser
  • Date: 2015-04-16 21:00:19 UTC
  • Revision ID: smoser@ubuntu.com-20150416210019-1pq4wsy4fb7wijgv
fix cloud-config-archive handling

handling of cloud-config-archive input would fail in fully_decoded_payload.
part.get_charset() would return a Charset object, but
get_charset.input_codec is a string suitable for passing to decode.

This handles that correctly, and is more careful about binary data inside
input.

The test added verifies that cloud-config inside a cloud-config-archive
is handled correctly and also that binary data there is ignored without
exceptions raised.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: