]> git.proxmox.com Git - qemu-server.git/commit
fix #2578: check if $target is provided in clone
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 3 Feb 2020 15:23:55 +0000 (16:23 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 5 Feb 2020 07:31:01 +0000 (08:31 +0100)
commitd069275fc969665aabe0e0c0f48d96993e050fb1
tree2fc0a9fbce960fc847ea32abc78892cf1a762842
parent2513b862e6db6847e66a7ecb2ddd17fa143e5e2e
fix #2578: check if $target is provided in clone

regression introduced with commit a85ff91b

previously we set $target to undef if it's localnode or localhost, then
we check if node exists.

with regression commit, behaviour changes as we do the node check in
else, but $target may be undef. this causes an error:

    no such cluster node ''

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
improved readability

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/Qemu.pm