Description of problem: append of -identifier suffix for vm object at permission auto-completion doesn't work for list/show/remove commands. e.g "list permissions vm" <TAB> produces "list permissions --vm" while should be "list permissions --vm-identifier"
There are two options for "list permissions vm". vm and vmpool Should we autocomplete to --vm-identifier or show "vm" and "vmpool" as options
(In reply to Ravi Nori from comment #1) > There are two options for "list permissions vm". vm and vmpool > > Should we autocomplete to --vm-identifier or show "vm" and "vmpool" as > options you can't do that as you have ambiguity at /vm e.g "list permissions vm" vm can stand for vm or for vmpool, the right way to solve this use-case is to stop expending vm/vmpool to --vm-identifier/--vmpool-identifier, i.e we should append -identifier not at auto-completion time, but at options list building time, this way you'll have [vm-identifier, vmpool-identifier] in the options list and auto-completion will only add prefix '--' once monovalent/definitive expression has been chosen, this way, machine can easily distinguish between vm-<TAB> and vmpool-<TAB>
*** Bug 1033079 has been marked as a duplicate of this bug. ***
fixed in 3.3.0.11-1
imeerovi@imeerovi ~/git/ART (master) $ sudo rpm -q rhevm-cli rhevm-cli-3.3.0.11-1.el6ev.noarch imeerovi@imeerovi ~/git/ART (master) $ rhevm-shell ========================================== >>> connected to RHEVM manager 3.3.0.0 <<< ========================================== ++++++++++++++++++++++++++++++++++++++++++ Welcome to RHEVM shell ++++++++++++++++++++++++++++++++++++++++++ [RHEVM shell (connected)]# list permissions v vm-identifier vmpool-identifier vnicprofile-identifier [RHEVM shell (connected)]# list permissions vm vm-identifier vmpool-identifier [RHEVM shell (connected)]# list permissions vm vm-identifier vmpool-identifier [RHEVM shell (connected)]#
Closing - RHEV 3.3 Released