mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-05 09:28:51 +00:00
pveum: user token: rename remove command to delete with alias
All other groups use delete for deleting users/groups/... so it makes sense to do so for the user token command group too. Add an alias for the old command for backwards compatibility to avoid that scrips and muscle memory break. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3f73052b19
commit
37a813d721
@ -207,7 +207,8 @@ our $cmddef = {
|
||||
token => {
|
||||
add => [ 'PVE::API2::User', 'generate_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],
|
||||
modify => [ 'PVE::API2::User', 'update_token_info', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],
|
||||
remove => [ 'PVE::API2::User', 'remove_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],
|
||||
delete => [ 'PVE::API2::User', 'remove_token', ['userid', 'tokenid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options ],
|
||||
remove => { alias => 'delete' },
|
||||
list => [ 'PVE::API2::User', 'token_index', ['userid'], {}, $print_api_result, $PVE::RESTHandler::standard_output_options],
|
||||
permissions => [ __PACKAGE__, 'token_permissions', ['userid', 'tokenid'], {}, $print_perm_result, $PVE::RESTHandler::standard_output_options],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user