Commit d90b5cc2 authored by Dietmar Maurer's avatar Dietmar Maurer

fix node status when no cluster configured

parent b88325e7
......@@ -174,7 +174,8 @@ __PACKAGE__->register_method({
};
if (my $d = $rrd->{"pve2-node/$node"}) {
if ($members->{$node} && $members->{$node}->{online}) {
if (!$members || # no cluster
($members->{$node} && $members->{$node}->{online})) {
$entry->{uptime} = ($d->[0] || 0) + 0;
$entry->{cpu} = ($d->[4] || 0) + 0;
$entry->{mem} = ($d->[7] || 0) + 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment