qm agent: add command line completion for vmid

This commit is contained in:
Dietmar Maurer 2016-11-30 12:47:03 +01:00
parent 96e6a80417
commit f38c5e270f

View File

@ -2854,7 +2854,8 @@ __PACKAGE__->register_method({
additionalProperties => 0, additionalProperties => 0,
properties => { properties => {
node => get_standard_option('pve-node'), 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 => { command => {
type => 'string', type => 'string',
description => "The QGA command.", description => "The QGA command.",