mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-08 21:18:03 +03:00
qmrestore: fix restore from STDIN
the special case was dropped when moving this to pve-storage.
fixes commit c6d517835a
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
19abcdd07e
commit
a2ec5a6705
@ -5655,6 +5655,9 @@ sub tar_restore_cleanup {
|
||||
sub restore_file_archive {
|
||||
my ($archive, $vmid, $user, $opts) = @_;
|
||||
|
||||
return restore_vma_archive($archive, $vmid, $user, $opts)
|
||||
if $archive eq '-';
|
||||
|
||||
my $info = PVE::Storage::archive_info($archive);
|
||||
my $format = $opts->{format} // $info->{format};
|
||||
my $comp = $info->{compression};
|
||||
|
Loading…
Reference in New Issue
Block a user