fix #3961: pveam: error on 'list' if storage doesn't exist
storage_check_enabled() already dies with an appropriate error message so we don't have to handle it here Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
parent
5f7f0095cb
commit
61a687ac13
@ -122,6 +122,8 @@ __PACKAGE__->register_method ({
|
||||
|
||||
my $cfg = PVE::Storage::config();
|
||||
|
||||
PVE::Storage::storage_check_enabled($cfg, $storeid);
|
||||
|
||||
die "Storage does not support templates!\n" if !$cfg->{ids}->{$storeid}->{content}->{vztmpl};
|
||||
|
||||
my $vollist = PVE::Storage::volume_list($cfg, $storeid, undef, 'vztmpl');
|
||||
|
Loading…
x
Reference in New Issue
Block a user