]> git.proxmox.com Git - qemu-server.git/commitdiff
clone: add command line completion for newid
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Mar 2018 10:05:56 +0000 (11:05 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 20 Mar 2018 10:09:45 +0000 (11:09 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
PVE/API2/Qemu.pm

index 9ac8e698a227488a172658aebb2211a47d86e492..0ba211d2c95ec091febd3ff769bc4055dacbf625 100644 (file)
@@ -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',