PVE::API2::ReplicationConfig->delete - use raise_param_exc

This commit is contained in:
Dietmar Maurer 2017-06-09 06:12:02 +02:00
parent 1164d9e1a4
commit c7abca7e09

View File

@ -217,7 +217,7 @@ __PACKAGE__->register_method ({
my $id = $param->{id};
if ($param->{force}) {
die "Keep will not work when force is set.\n" if $param->{keep};
raise_param_exc({ 'keep' => "conflicts with parameter 'force'" }) if $param->{keep};
delete $cfg->{ids}->{$id};
} else {
my $jobcfg = $cfg->{ids}->{$id};