mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-05 18:47:56 +00:00
clone: add command line completion for newid
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
fd13b1d0e1
commit
1ae43f8c11
@ -2472,7 +2472,9 @@ __PACKAGE__->register_method({
|
|||||||
properties => {
|
properties => {
|
||||||
node => get_standard_option('pve-node'),
|
node => get_standard_option('pve-node'),
|
||||||
vmid => get_standard_option('pve-vmid', { completion => \&PVE::QemuServer::complete_vmid }),
|
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 => {
|
name => {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
type => 'string', format => 'dns-name',
|
type => 'string', format => 'dns-name',
|
||||||
|
Loading…
Reference in New Issue
Block a user