diff options
author | Scott Moser <smoser@brickies.net> | 2016-09-12 12:32:08 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-09-12 12:39:11 -0400 |
commit | 2aa9b1ddf80ffe7d35e8437c59670856d612e64e (patch) | |
tree | c848951aded34cab7437414b30c2170dc1bf2bd7 /HACKING.rst | |
parent | 97b5b40e14fd6563b9cac716f202891d4c38ecf6 (diff) | |
download | vyos-cloud-init-2aa9b1ddf80ffe7d35e8437c59670856d612e64e.tar.gz vyos-cloud-init-2aa9b1ddf80ffe7d35e8437c59670856d612e64e.zip |
DataSourceOVF: fix user-data as base64 with python3
When user-data was provided in the ovf environment python3 would call
base64.decodestring() with a string rather than bytes and an exception
would occur.
This fixes the broken path and adds unit test. Also changes to
return None rather than empty string when there is no user-data and
when there is user-data return that as bytes instead of string.
LP: #1619394
Diffstat (limited to 'HACKING.rst')
0 files changed, 0 insertions, 0 deletions