From 1ae43f8c11bb8286807a6d705b65d5482f0806ef Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 16 Mar 2018 11:05:56 +0100 Subject: [PATCH] clone: add command line completion for newid Signed-off-by: Dietmar Maurer --- PVE/API2/Qemu.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', -- 2.39.2