[pve-devel] [PATCH manager] fix #621: allow template download to glusterfs
Dominik Csapak
d.csapak at proxmox.com
Fri Sep 2 11:59:43 CEST 2016
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 at proxmox.com>
---
PVE/API2/Nodes.pm | 3 ---
1 file changed, 3 deletions(-)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 6db6caf..3cb105a 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -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');
--
2.1.4
More information about the pve-devel
mailing list