]> git.proxmox.com Git - pve-container.git/commitdiff
resize: add bash completion support
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 7 Sep 2015 14:57:38 +0000 (16:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 7 Sep 2015 14:57:38 +0000 (16:57 +0200)
src/PVE/API2/LXC/Config.pm

index 476e07c6093bcf83730eb139b13f39b10e5cf682..b4a92de2435c668f57d318edcc0d608e08c8e8d9 100644 (file)
@@ -178,7 +178,7 @@ __PACKAGE__->register_method({
        properties => PVE::LXC::json_config_properties(
            {
                node => get_standard_option('pve-node'),
-               vmid => get_standard_option('pve-vmid'),
+               vmid => get_standard_option('pve-vmid', { completion => \&PVE::LXC::complete_ctid }),
                disk => {
                    type => 'string',
                    description => "The disk you want to resize.",