tatu/scripts/cloud-config-to-vendor-data
2017-11-27 21:50:50 +00:00

11 lines
183 B
Python
Executable File

#!/usr/bin/env python
import sys
import json
import yaml
# load from file:
with open(sys.argv[1], 'r') as f:
yaml_string = f.read()
print json.dumps({"cloud-init":yaml_string})