[openstack-dev] [osc][python-openstackclient] Consistency of option name

Dean Troyer dtroyer at gmail.com
Mon Feb 12 14:44:46 UTC 2018


On Sun, Feb 11, 2018 at 10:18 PM, Hongbin Lu <hongbin034 at gmail.com> wrote:
> I was working on the OSC plugin of my project and trying to choose a CLI
> option to represent the availability zone of the container. When I came
> across the existing commands, I saw some inconsistencies on the naming. Some
> commands use the syntax '--zone <xxx>', while others use the syntax
> '--availability-zone <xxx>'. For example:
>
> * openstack host list ... [--zone <zone>]
> * openstack aggregate create ... [--zone <availability-zone>]

These likely date back to the original command mapping I did and in
retrospect should have been --availability-zone.  However they have
been there since day 1 or 2.

> * openstack volume create ... [--availability-zone <availability-zone>]
> * openstack consistency group create ... [--availability-zone
> <availability-zone>]
>
> I wonder if it makes sense to address this inconsistency. Is it possible
> have all commands using one syntax?

This is the sort of thing that should be addressed in the long-overdue
OSC 4 release where we will make small breaking changes like this.
Of course, the old option will be properly deprecated and silently
supported for some time.

dt

-- 

Dean Troyer
dtroyer at gmail.com



More information about the OpenStack-dev mailing list