restore: parse volid with $noerr

otherwise VMA files passed in as paths instead of as volids don't
work anymore.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-04-02 15:12:37 +02:00
parent 13cfe3b7a7
commit e5fd1c6591

View File

@ -404,7 +404,7 @@ __PACKAGE__->register_method({
my $parse_restore_archive = sub { my $parse_restore_archive = sub {
my ($storecfg, $archive) = @_; my ($storecfg, $archive) = @_;
my ($archive_storeid, $archive_volname) = PVE::Storage::parse_volume_id($archive); my ($archive_storeid, $archive_volname) = PVE::Storage::parse_volume_id($archive, 1);
if (defined($archive_storeid)) { if (defined($archive_storeid)) {
my $scfg = PVE::Storage::storage_config($storecfg, $archive_storeid); my $scfg = PVE::Storage::storage_config($storecfg, $archive_storeid);