]> git.proxmox.com Git - qemu-server.git/commit
fix creating clone if target storage is same as source storage
authorAlwin Antreich <a.antreich@proxmox.com>
Fri, 5 Apr 2019 12:35:45 +0000 (14:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Apr 2019 12:46:53 +0000 (14:46 +0200)
commitee43cd487c6a39180a0c6a68389e2050ddd5b4e4
tree2257f5a52c662232d5cd01a24ac2ee25f9f52f78
parentc68305a4977b0464c50279d82635ba957e00dd66
fix creating clone if target storage is same as source storage

the clone API calls (target) 'storage' parameter is optional as we
simply use the source storage in this case, but we did not handle
this case when we added the bandwidth_limit abillity, address that.

This patch only pushes the storage parameter into the storage_list array
if it is defined.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm