From 703de49ea9285ed47ec08fb3d697b010a1383423 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Thu, 31 Mar 2016 15:18:38 +0200 Subject: [PATCH] Skip invalid property's in storage parser There is no need to remove the hole storage, if one property is not valid. Just ignore the property. --- PVE/Storage/Plugin.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index ccb3280..6f29838 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -235,7 +235,8 @@ sub decode_value { foreach my $c (PVE::Tools::split_list($value)) { if (!$valid_content->{$c}) { - die "storage does not support content type '$c'\n"; + warn "storage does not support content type '$c'\n"; + next; } $res->{$c} = 1; } @@ -249,7 +250,8 @@ sub decode_value { my $valid_formats = $def->{format}->[0]; if (!$valid_formats->{$value}) { - die "storage does not support format '$value'\n"; + warn "storage does not support format '$value'\n"; + next; } return $value;