mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-30 10:44:06 +00:00
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:
parent
13cfe3b7a7
commit
e5fd1c6591
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user