bash - Heat template: How to pass all the value in a dynamic map to the heat template -
if have list, example, list1={"node1": "test1", "node2": "test2", ...}
(this list1 not static, dynamic, users can define length), there way can pass value in list1 bash script? thank much.
try @ least using proper language parse data in there.
./my_script.sh `python3 -c "import sys; ast import literal_eval; print(' '.join('--{} {}'.format(key, value) key, value in literal_eval(sys.argv[1].split('=')[-1]).items())"`
Comments
Post a Comment