replication: target is a required parameter

no need to check for definedness

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-08-11 14:30:25 +02:00 committed by Thomas Lamprecht
parent 6f0b90ae14
commit ac527c6f84

View File

@ -123,7 +123,7 @@ __PACKAGE__->register_method ({
die "Guest '$guest' does not exist.\n"
if !defined($guest_info);
die "Target '$param->{target}' does not exist.\n"
if defined($param->{target}) && !defined($nodelist->{$param->{target}});
if !defined($nodelist->{$param->{target}});
my $source = $guest_info->{node};
die "Source '$param->{source}' does not match current node of guest '$guest'\n"