From ee8c176d3a5a3b46aa5872ede5e739b7b7d6bf08 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Mon, 14 May 2018 07:23:39 +0200 Subject: [PATCH] Simplify image/template upload check. All storage's witch are able to store images must have a path. --- PVE/API2/Storage/Status.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm index ab07146..afb8dcc 100644 --- a/PVE/API2/Storage/Status.pm +++ b/PVE/API2/Storage/Status.pm @@ -335,7 +335,7 @@ __PACKAGE__->register_method ({ my $scfg = PVE::Storage::storage_check_enabled($cfg, $param->{storage}, $node); die "cant upload to storage type '$scfg->{type}'\n" - if !($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs' || $scfg->{type} eq 'glusterfs'); + if !defined($scfg->{path}); my $content = $param->{content};