]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Group.pm
pveum: implement bash completion hooks
[pve-access-control.git] / PVE / API2 / Group.pm
index 27051a457a5364f0ef3a84342bcf13e5eab87b12..fca8a2ae831d2043e420119562f66b2d51dc65a5 100644 (file)
@@ -107,7 +107,10 @@ __PACKAGE__->register_method ({
     parameters => {
        additionalProperties => 0,
        properties => {
-           groupid => { type => 'string', format => 'pve-groupid' },
+           groupid => {
+               type => 'string', format => 'pve-groupid',
+               completion => \&PVE::AccessControl::complete_group,
+           },
            comment => { type => 'string', optional => 1 },
        },
     },
@@ -195,7 +198,10 @@ __PACKAGE__->register_method ({
     parameters => {
        additionalProperties => 0,
        properties => {
-           groupid => { type => 'string' , format => 'pve-groupid' },
+           groupid => {
+               type => 'string' , format => 'pve-groupid',
+               completion => \&PVE::AccessControl::complete_group,
+           },
        }
     },
     returns => { type => 'null' },