[OSC] Parameters for "dataprocessing image tags add" expected in different order than the description
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client library for Sahara |
Confirmed
|
Low
|
Unassigned |
Bug Description
Tested on a recent release of RDO Mitaka:
python-
$ openstack help dataprocessing image tags add
usage: openstack dataprocessing image tags add [-h]
.....
But then:
$ openstack dataprocessing image tags add --tags vanilla 2.7.1 c7-vanilla
usage: openstack dataprocessing image tags add [-h]
openstack dataprocessing image tags add: error: too few arguments
This works instead:
$ openstack dataprocessing image tags add c7-vanilla_
So either the help message should be fixed, or the parameters should be accepted according the current help message.
Changed in python-saharaclient: | |
importance: | Undecided → Low |
importance: | Low → Undecided |
importance: | Undecided → Low |
status: | New → Confirmed |
The order of arguments in help message (and format of help message in general) cannot be fixed on saharaclient side. It's all about openstackclient /cliff/ argparse (depending on where it actually was overridden).
"--tags" parameter expects one or more arguments to be present, so c7-vanilla from your example was considered as a tag.
I would say it shouldn't be fixed, but if it's really confused, "image" argument can be made optional or tags can be added one by one via "--tag" parameter.