X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FAccessControl.pm;fp=PVE%2FAPI2%2FAccessControl.pm;h=a4b9fa31a20df04dbaa01e611c382121aa04f276;hb=158514a8362ac7ffdecd1562fc2be6b8e113718c;hp=b3fbe6db36affa4775affce5738d5a738eb4fc71;hpb=e240695bd9040cba80645a30535bac4424d53f5d;p=pve-access-control.git diff --git a/PVE/API2/AccessControl.pm b/PVE/API2/AccessControl.pm index b3fbe6d..a4b9fa3 100644 --- a/PVE/API2/AccessControl.pm +++ b/PVE/API2/AccessControl.pm @@ -10,6 +10,7 @@ use PVE::Exception qw(raise raise_perm_exc raise_param_exc); use PVE::SafeSyslog; use PVE::RPCEnvironment; use PVE::Cluster qw(cfs_read_file); +use PVE::DataCenterConfig; use PVE::RESTHandler; use PVE::AccessControl; use PVE::JSONSchema qw(get_standard_option); @@ -389,7 +390,7 @@ sub get_u2f_config() { my $dc = cfs_read_file('datacenter.cfg'); my $u2f = $dc->{u2f}; die "u2f not configured in datacenter.cfg\n" if !$u2f; - $u2f = PVE::JSONSchema::parse_property_string($PVE::Cluster::u2f_format, $u2f); + $u2f = PVE::JSONSchema::parse_property_string($PVE::DataCenterConfig::u2f_format, $u2f); return $u2f; }