Commit 9e16d3a8 authored by Brian Candler's avatar Brian Candler Committed by Nikos Skalkotos
Browse files

Allow control characters in JSON string literals

This is to allow multi-line base64 encoded data in the "contents"
attribute of img_personality.

Fixes #51
parent d66be51b
......@@ -60,7 +60,7 @@ def main():
infh = sys.stdin if input_file is None else open(input_file, 'r')
outfh = open(output_file, 'w')
properties = json.load(infh)
properties = json.load(infh, strict=False)
for key, value in properties.items():
os.environ['SNF_IMAGE_PROPERTY_' + str(key).upper()] = value
......
......@@ -73,7 +73,7 @@ def parse_arguments(input_args):
def main():
(input_file, target, decode) = parse_arguments(sys.argv[1:])
files = json.load(input_file)
files = json.load(input_file, strict=False)
if decode:
manifest = open(target + '/manifest', 'w')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment