]> git.proxmox.com Git - qemu-server.git/commitdiff
snapshot_list: add bash completion for vmid
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2016 09:57:53 +0000 (11:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2016 09:57:53 +0000 (11:57 +0200)
PVE/API2/Qemu.pm

index ad7a0c09caed134b8c813b2877c295b82cc8d634..ac04dffee02be3f6e43840c96a6438ee11716efe 100644 (file)
@@ -2897,7 +2897,7 @@ __PACKAGE__->register_method({
     parameters => {
        additionalProperties => 0,
        properties => {
-           vmid => get_standard_option('pve-vmid'),
+           vmid => get_standard_option('pve-vmid', { completion => \&PVE::QemuServer::complete_vmid }),
            node => get_standard_option('pve-node'),
        },
     },