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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -