From: Dietmar Maurer Date: Fri, 16 Mar 2018 10:05:56 +0000 (+0100) Subject: clone: add command line completion for newid X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=1ae43f8c11bb8286807a6d705b65d5482f0806ef clone: add command line completion for newid Signed-off-by: Dietmar Maurer --- diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 9ac8e69..0ba211d 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2472,7 +2472,9 @@ __PACKAGE__->register_method({ properties => { node => get_standard_option('pve-node'), vmid => get_standard_option('pve-vmid', { completion => \&PVE::QemuServer::complete_vmid }), - newid => get_standard_option('pve-vmid', { description => 'VMID for the clone.' }), + newid => get_standard_option('pve-vmid', { + completion => \&PVE::Cluster::complete_next_vmid, + description => 'VMID for the clone.' }), name => { optional => 1, type => 'string', format => 'dns-name',