]> git.proxmox.com Git - qemu-server.git/commit
clone disk: don't modify drive parameter
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 27 Jan 2022 14:01:55 +0000 (15:01 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 31 Jan 2022 12:10:33 +0000 (13:10 +0100)
commit3b53c47155e22bdde258630f5e7b88f7ee3806aa
treeae822945d21db63bea35c2fd42062a4920b6f886
parentbdf6ba1e7dafe469630c2f721de3d44482279b62
clone disk: don't modify drive parameter

While existing callers are not using the parameter after the call,
the modification is rather unexpected and could lead to bugs quickly.

Also avoid setting an undef value in the hash, but use delete instead.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm