mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-03 03:38:29 +00:00
fix "Use of uninitialized value $target"
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
75466c4fa6
commit
751cc556dc
@ -1886,7 +1886,7 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
my $localnode = PVE::INotify::nodename();
|
my $localnode = PVE::INotify::nodename();
|
||||||
|
|
||||||
undef $target if $target eq $localnode || $target eq 'localhost';
|
undef $target if $target && ($target eq $localnode || $target eq 'localhost');
|
||||||
|
|
||||||
PVE::Cluster::check_node_exists($target) if $target;
|
PVE::Cluster::check_node_exists($target) if $target;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user