Commit ea7440f7 authored by Dietmar Maurer's avatar Dietmar Maurer

use new PVE::Storage::abs_filesystem_path

parent 6a143a40
......@@ -342,8 +342,8 @@ __PACKAGE__->register_method({
if !$param->{restore};
$archive = '-';
} else {
$archive = $rpcenv->check_volume_access($authuser, $storage_cfg, $vmid, $ostemplate);
die "can't find file '$archive'\n" if ! -f $archive;
$rpcenv->check_volume_access($authuser, $storage_cfg, $vmid, $ostemplate);
$archive = PVE::Storage::abs_filesystem_path($storage_cfg, $ostemplate);
}
if (!defined($param->{searchdomain}) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment