Simplify image/template upload check.
All storage's witch are able to store images must have a path.
This commit is contained in:
committed by
Wolfgang Bumiller
parent
c0b969a39d
commit
ee8c176d3a
@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user