followup: remove no-op JSONSchema::check_format on mountpoint
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -151,12 +151,10 @@ sub on_add_hook {
|
|||||||
my ($class, $storeid, $scfg, %param) = @_;
|
my ($class, $storeid, $scfg, %param) = @_;
|
||||||
|
|
||||||
my $cfg_mountpoint = $scfg->{mountpoint};
|
my $cfg_mountpoint = $scfg->{mountpoint};
|
||||||
my $mountpoint;
|
|
||||||
|
|
||||||
# ignore failure, pool might currently not be imported
|
# ignore failure, pool might currently not be imported
|
||||||
eval {
|
my $mountpoint = eval {
|
||||||
$mountpoint = $class->zfs_get_properties($scfg, 'mountpoint', $scfg->{pool}, 1);
|
$class->zfs_get_properties($scfg, 'mountpoint', $scfg->{pool}, 1)
|
||||||
PVE::JSONSchema::check_format(properties()->{mountpoint}->{format}, $mountpoint);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (defined($cfg_mountpoint)) {
|
if (defined($cfg_mountpoint)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user