followup: remove no-op JSONSchema::check_format on mountpoint

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-11-21 12:41:56 +01:00
parent dcefd9dd28
commit 528aa0eefb

View File

@ -151,12 +151,10 @@ sub on_add_hook {
my ($class, $storeid, $scfg, %param) = @_;
my $cfg_mountpoint = $scfg->{mountpoint};
my $mountpoint;
# ignore failure, pool might currently not be imported
eval {
$mountpoint = $class->zfs_get_properties($scfg, 'mountpoint', $scfg->{pool}, 1);
PVE::JSONSchema::check_format(properties()->{mountpoint}->{format}, $mountpoint);
my $mountpoint = eval {
$class->zfs_get_properties($scfg, 'mountpoint', $scfg->{pool}, 1)
};
if (defined($cfg_mountpoint)) {