semicolon separated parameters are not taken from CLI
Bug #1375759 reported by
Anant Patil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-heatclient |
Opinion
|
Undecided
|
Anant Patil |
Bug Description
I tried to create a stack from CLI using following command:
heat stack-create hello -f /opt/stack/
It fails with:
ERROR: The Parameter (admin_pass) was not provided.
When I print all the args from shell.py, it includes only the first parameter i.e. heat_key in this case.
description: | updated |
Changed in python-heatclient: | |
assignee: | nobody → Anant Patil (ananta) |
Changed in python-heatclient: | |
status: | Invalid → Opinion |
To post a comment you must log in.
It looks like is a shell problem, the first semicolon terminating the CLI command. Either the semicolons should be escaped or the parameter key-value pairs must be enclosed in quotes.
------- ------- ------- ------- ------- ------- ------- ------- ------- --
Example:
heat stack-create hello1 -f /opt/stack/ heat-templates/ hot/hello_ world.yaml -P "flavor= m1.tiny; admin_pass= Admin24; image=cirros- 0.3.2-x86_ 64-uec; key_name= heat-key"
or
heat stack-create hello -f /opt/stack/ heat-templates/ hot/hello_ world.yaml -P flavor= m1.tiny\ ;admin_ pass=admin\ ;image= cirros- 0.3.2-x86_ 64-uec\ ;key_name= heat-key
------- ------- ------- ------- ------- ------- ------- ------- ------- --
May be we should use some other character to separate the key-value pairs given in parameters?