From e5fd1c65918dd3edb35a7a92a9757dc531a10a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 2 Apr 2020 15:12:37 +0200 Subject: [PATCH] restore: parse volid with $noerr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise VMA files passed in as paths instead of as volids don't work anymore. Signed-off-by: Fabian Grünbichler --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 788db939..6fad9729 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -404,7 +404,7 @@ __PACKAGE__->register_method({ my $parse_restore_archive = sub { 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)) { my $scfg = PVE::Storage::storage_config($storecfg, $archive_storeid);