Enhance user input check in 'cinder type-key'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When I tried to set extra specs for a volume type i used following:
cinder type-key cgtype set test= aa
above format is not the allowed format(I typed an SPACE before 'aa'):
stack@ubuntu14:
usage: cinder type-key <vtype> <action> <key=value> [<key=value> ...]
while cinderclient did not do format check and produced unexpected result:
stack@ubuntu14:
+------
| ID | Name | extra_specs |
+------
| 9536cd2f-
+------
what i want is {'test': 'aa'}
This behavior would cause confusion when user uses this type to create volume.
Thanks
Peter
Changed in python-cinderclient: | |
assignee: | nobody → Syed Ahsan Shamim Zaidi (ahsanmohsin04) |
Changed in python-cinderclient: | |
status: | New → In Progress |
Changed in python-cinderclient: | |
assignee: | Syed Ahsan Shamim Zaidi (ahsanmohsin04) → nobody |
Hi Peter,
It is an error as you have said since there should not be any space, it should be test=aa.
However, did you tried cinder type-key cgtype set ['test'='aa'].
I dont think one can get the output other way, rather then u'xxx'
Let me know if it works.