]> git.proxmox.com Git - pve-container.git/commitdiff
pct: avoid use of qemu-server completion method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Mar 2024 09:18:03 +0000 (10:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Mar 2024 09:18:05 +0000 (10:18 +0100)
Didn't matter functionality wise, as VMIDs are agnostic to the actual
guest type, but ugly and making it harder to bootstrap.

Worked by luck only if QemuServer got loaded already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/pct.pm

index c84ec03190728448aeb9c7e18cffc846e09a2206..c2a110e082072d8a8ac4034b1d61edb16fd6f9f2 100755 (executable)
@@ -857,7 +857,7 @@ __PACKAGE__->register_method({
        additionalProperties => 0,
        properties => {
            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::LXC::complete_ctid }),
            'target-vmid' => get_standard_option('pve-vmid', { optional => 1 }),
            'target-endpoint' => get_standard_option('proxmox-remote', {
                description => "Remote target endpoint",