restore: remove duplicate check

The refactoring in 36d4bdcb86 missed
this. The check is already done as part of the following check_storage
call.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2022-02-25 09:58:16 +01:00
parent 39abafc8e7
commit f7765dd72e

View File

@ -6257,9 +6257,6 @@ my $parse_backup_hints = sub {
$devinfo->{$devname}->{storeid} = $storeid; $devinfo->{$devname}->{storeid} = $storeid;
my $scfg = PVE::Storage::storage_config($storecfg, $storeid); my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
die "Content type 'images' is not available on storage '$storeid'\n"
if !$scfg->{content}->{images};
$check_storage->($storeid, $scfg); # permission and content type check $check_storage->($storeid, $scfg); # permission and content type check
$virtdev_hash->{$virtdev} = $devinfo->{$devname}; $virtdev_hash->{$virtdev} = $devinfo->{$devname};