summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-12-16 15:40:14 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-12-16 15:40:14 +0200
commit5eed2ccdc97c3d5c46089591386ea7ff84fcb0c9 (patch)
tree31d9539083adbbd1f863c5612f99af6e7eb0678d
parentacd5ce18715fa69a6e7dba0e2140d64bd3cbf9d0 (diff)
downloadlci-build-tools-5eed2ccdc97c3d5c46089591386ea7ff84fcb0c9.tar.gz
Add a FIXME to use ordered dictionaries
an ordered dictionary is required for LAVA "customize" syntax as the order of commands is relevant. Change-Id: I14e8a0b9d9889f99b6ef9c54e75dd7bdd1e8e9ff Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xyaml-to-json.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaml-to-json.py b/yaml-to-json.py
index 5cf9d98..e0ee35b 100755
--- a/yaml-to-json.py
+++ b/yaml-to-json.py
@@ -37,7 +37,8 @@ def main():
kernel_config=os.environ.get('kernel_config'),
)
- config = json.dumps(yaml.safe_load(lava_template), indent=2)
+ # FIXME: use ordered dictionaries - see http://pyyaml.org/ticket/29
+ config = json.dumps(yaml.safe_load(lava_template), indent=2, separators=(',', ': '))
print config