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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -