]> git.proxmox.com Git - qemu-server.git/commitdiff
qm agent: add command line completion for vmid
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Nov 2016 11:47:03 +0000 (12:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Nov 2016 11:47:03 +0000 (12:47 +0100)
PVE/API2/Qemu.pm

index 500e2df8fc04354786b7288eba289f14a8ff5231..2358aee07cce473383f29ce35574f2570e4062ee 100644 (file)
@@ -2854,7 +2854,8 @@ __PACKAGE__->register_method({
        additionalProperties => 0,
        properties => {
            node => get_standard_option('pve-node'),
-           vmid => get_standard_option('pve-vmid'),
+           vmid => get_standard_option('pve-vmid', {
+                   completion => \&PVE::QemuServer::complete_vmid_running }),
            command => {
                type => 'string',
                description => "The QGA command.",