5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-11 05:17:57 +03:00

fix 'qm unlink' command syntax

It is not possible to use idlist as argument, because our getoption parser
can't handle that. So we simply pass idlist as option, for example

 # qm unlink 100 --idlist 'ide2,ide3'
This commit is contained in:
Dietmar Maurer 2013-12-04 06:16:12 +01:00
parent 0ee6e54718
commit 213ef632af
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
qemu-server (3.1-11) unstable; urgency=low
* depend on pve-qemu-kvm >= 1.7-1
* fix 'qm unlink' command syntax
-- Proxmox Support Team <support@proxmox.com> Tue, 03 Dec 2013 10:48:33 +0100

2
qm
View File

@ -415,7 +415,7 @@ my $cmddef = {
move_disk => [ "PVE::API2::Qemu", 'move_vm_disk', ['vmid', 'disk', 'storage'], { node => $nodename }, $upid_exit ],
unlink => [ "PVE::API2::Qemu", 'unlink', ['vmid', 'idlist'], { node => $nodename } ],
unlink => [ "PVE::API2::Qemu", 'unlink', ['vmid'], { node => $nodename } ],
config => [ "PVE::API2::Qemu", 'vm_config', ['vmid'],
{ node => $nodename }, sub {