avoid nested parameter exception
This commit is contained in:
@ -180,12 +180,12 @@ my $real_volume_id = sub {
|
|||||||
if ($volume =~ m/:/) {
|
if ($volume =~ m/:/) {
|
||||||
eval {
|
eval {
|
||||||
my ($sid, $volname) = PVE::Storage::parse_volume_id ($volume);
|
my ($sid, $volname) = PVE::Storage::parse_volume_id ($volume);
|
||||||
raise_param_exc({ storage => "storage ID missmatch" })
|
die "storage ID missmatch ($sid != $storeid)\n"
|
||||||
if $storeid && $sid ne $storeid;
|
if $storeid && $sid ne $storeid;
|
||||||
$volid = $volume;
|
$volid = $volume;
|
||||||
$storeid = $sid;
|
$storeid = $sid;
|
||||||
};
|
};
|
||||||
raise_param_exc({ volume => $@}) if $@;
|
raise_param_exc({ volume => $@ }) if $@;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
raise_param_exc({ volume => "no storage speficied - incomplete volume ID" })
|
raise_param_exc({ volume => "no storage speficied - incomplete volume ID" })
|
||||||
|
|||||||
Reference in New Issue
Block a user