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:
parent
6f0b90ae14
commit
ac527c6f84
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user