mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-20 14:03:52 +03:00
config: prevent empty content list when content type 'none' is not supported
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
d96b789aed
commit
03c487e553
@ -345,6 +345,10 @@ sub decode_value {
|
||||
die "unable to combine 'none' with other content types\n";
|
||||
}
|
||||
|
||||
if (scalar(keys $res->%*) == 0 && !$valid_content->{none}) {
|
||||
die "storage does not support content type 'none'\n";
|
||||
}
|
||||
|
||||
return $res;
|
||||
} elsif ($key eq 'format') {
|
||||
my $valid_formats = $def->{format}->[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user