5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-26 10:03:51 +03:00

fix "Use of uninitialized value $target"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-05-02 06:33:45 +02:00 committed by Dietmar Maurer
parent 75466c4fa6
commit 751cc556dc

View File

@ -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;