Signed-off-by: Oguz Bektas <o.bek...@proxmox.com> --- PVE/CLI/pveam.pm | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/PVE/CLI/pveam.pm b/PVE/CLI/pveam.pm index 6c26f209..0ad33823 100644 --- a/PVE/CLI/pveam.pm +++ b/PVE/CLI/pveam.pm @@ -122,6 +122,8 @@ __PACKAGE__->register_method ({ my $cfg = PVE::Storage::config(); + die "Storage does not exist!\n" if !defined($cfg->{ids}->{$storeid}); + die "Storage does not support templates!\n" if !$cfg->{ids}->{$storeid}->{content}->{vztmpl}; my $vollist = PVE::Storage::volume_list($cfg, $storeid, undef, 'vztmpl'); -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel