From 751cc556dc8df9de5c0a62360d42ad511f7369af Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 2 May 2013 06:33:45 +0200 Subject: [PATCH] fix "Use of uninitialized value $target" Signed-off-by: Alexandre Derumier --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 93458b04..f524dfc5 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1886,7 +1886,7 @@ __PACKAGE__->register_method({ 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;