]> git.proxmox.com Git - pve-cluster.git/commitdiff
datacenter config: import parse_property_string
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Mar 2022 12:07:50 +0000 (13:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 05:34:46 +0000 (07:34 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/DataCenterConfig.pm

index 6c0fa5b2ff5a7abf317e64231843ec59c1b3c96c..344b6c7bba4e3c7e1db94f9fe3facc4c72b843d3 100644 (file)
@@ -3,7 +3,7 @@ package PVE::DataCenterConfig;
 use strict;
 use warnings;
 
-use PVE::JSONSchema;
+use PVE::JSONSchema qw(parse_property_string);
 use PVE::Tools;
 use PVE::Cluster;
 
@@ -247,19 +247,19 @@ sub parse_datacenter_config {
     $res->{description} = $comment;
 
     if (my $migration = $res->{migration}) {
-       $res->{migration} = PVE::JSONSchema::parse_property_string($migration_format, $migration);
+       $res->{migration} = parse_property_string($migration_format, $migration);
     }
 
     if (my $ha = $res->{ha}) {
-       $res->{ha} = PVE::JSONSchema::parse_property_string($ha_format, $ha);
+       $res->{ha} = parse_property_string($ha_format, $ha);
     }
 
     if (my $u2f = $res->{u2f}) {
-       $res->{u2f} = PVE::JSONSchema::parse_property_string($u2f_format, $u2f);
+       $res->{u2f} = parse_property_string($u2f_format, $u2f);
     }
 
     if (my $webauthn = $res->{webauthn}) {
-       $res->{webauthn} = PVE::JSONSchema::parse_property_string($webauthn_format, $webauthn);
+       $res->{webauthn} = parse_property_string($webauthn_format, $webauthn);
     }
 
     # for backwards compatibility only, new migration property has precedence