-
Notifications
You must be signed in to change notification settings - Fork 95
The command behavior of "tenant rm" and "policy rm" are inconsistent #922
Comments
Even tests need to be fixed. |
The suggested change will leave 'tenant ' set inconsistent. |
@msterin I don't think this will leave "tenant set" inconsistent. For CUD operations, only D (rm) does not need "--name". Add & set still need "--name". This is just a convention for most command lines tools. |
From https://docs.docker.com/engine/reference/commandline/docker/ I think we can go ahead with something consistent for all commands. Right now, only policy rm command takes positional name. All other commands require --name. |
A natural way is to use positionals. I am fine with using So I agree with @pshahzeb here. And if we do it, we also need to change the related doc and test, and do it in 0.13 or GA , it will be more impacful later. |
@msterin Some examples: Anyway, I agree that keep consistency (especially local consistency) is very important. |
@shaominchen @msterin |
@pshahzeb I agree. |
Can you make sure admin_cli information is in sync with the proposed changes? |
When we run "vmdkops_admin policy rm MyPolicy", we don't need to specify the parameter name "--name". However, to run "vmdkops_admin tenant rm --name MyTenant", we must specify "--name".
I think we should keep the command behavior consistent. My suggestion is to fix the "tenant rm" command, because the behavior of "policy rm" command is more natural, and it's also consistent with other CLI tools, such as "docker volume rm" command.
The text was updated successfully, but these errors were encountered: