From: Fabian Grünbichler Date: Mon, 11 Nov 2019 10:28:09 +0000 (+0100) Subject: use already parsed u2f property string X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cbe9d6ef92bf99769dc6e3c53ca7d54d1df7bba6;p=pve-access-control.git use already parsed u2f property string since libpve-cluster-perl 6.0-8 this happens automatically when parsing the datacenter.cfg, just like the other property strings stored there. Signed-off-by: Fabian Grünbichler --- diff --git a/PVE/API2/AccessControl.pm b/PVE/API2/AccessControl.pm index a4b9fa3..2e16ebf 100644 --- a/PVE/API2/AccessControl.pm +++ b/PVE/API2/AccessControl.pm @@ -390,7 +390,6 @@ 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::DataCenterConfig::u2f_format, $u2f); return $u2f; }