fix #621: allow template download to glusterfs
removes the check for dir or nfs storage, because a few lines below we check for the content type vztmpl which should only be allowed when we have a location where we put templates, thus we should be able to download them there Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
c264e402dc
commit
ea95d2fb6b
@ -1087,9 +1087,6 @@ __PACKAGE__->register_method({
|
||||
my $cfg = PVE::Storage::config();
|
||||
my $scfg = PVE::Storage::storage_check_enabled($cfg, $param->{storage}, $node);
|
||||
|
||||
die "cannot download to storage type '$scfg->{type}'"
|
||||
if !($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs');
|
||||
|
||||
die "unknown template type '$pd->{type}'\n"
|
||||
if !($pd->{type} eq 'openvz' || $pd->{type} eq 'lxc');
|
||||
|
||||
|
Reference in New Issue
Block a user