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 /tools | |
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 'tools')
-rw-r--r-- | tools/.github-cla-signers | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/.github-cla-signers b/tools/.github-cla-signers index aca0ee5e..5c57acac 100644 --- a/tools/.github-cla-signers +++ b/tools/.github-cla-signers @@ -14,6 +14,7 @@ dankenigsberg dermotbradley dhensby eandersson +eb3095 emmanuelthome izzyleung johnsonshi |