[pve-devel] [PATCH manager] api: improve node index with missing/broken cert
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Jun 2 09:40:55 CEST 2020
since this API endpoint is used for the node selector in the GUI, which
causes quite widespread breakage.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
PVE/API2/Nodes.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 58497b2b..9008dcad 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -2261,7 +2261,10 @@ __PACKAGE__->register_method ({
foreach my $node (@$nodelist) {
my $can_audit = $rpcenv->check($authuser, "/nodes/$node", [ 'Sys.Audit' ], 1);
my $entry = PVE::API2Tools::extract_node_stats($node, $members, $rrd, !$can_audit);
- $entry->{ssl_fingerprint} = PVE::Cluster::get_node_fingerprint($node);
+
+ $entry->{ssl_fingerprint} = eval { PVE::Cluster::get_node_fingerprint($node) };
+ warn "$@" if $@;
+
push @$res, $entry;
}
--
2.20.1
More information about the pve-devel
mailing list