diff options
author | eb3095 <45504889+eb3095@users.noreply.github.com> | 2021-03-16 12:35:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 11:35:05 -0500 |
commit | f35181fa970453ba6c7c14575b12185533391b97 (patch) | |
tree | be7334c5ffa3fba08357d0499386ef40f14d6ea2 /tests | |
parent | 3aeb14cd46613b97afefc4632909f6e9b83d0230 (diff) | |
download | vyos-cloud-init-f35181fa970453ba6c7c14575b12185533391b97.tar.gz vyos-cloud-init-f35181fa970453ba6c7c14575b12185533391b97.zip |
Fix stack trace if vendordata_raw contained an array (#837)
The implementation in existing datasources means that vendordata_raw is
not "raw" as it ideally would be. Instead, actual values may include
bytes, string or list. If the value was a list, then the attempt to
persist that data to a file in '_store_rawdata' would raise a
TypeError.
The change is to encode with util.json_dumps (which is safe for
binary data) before writing.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions