Skip to content

Commit

Permalink
rest: improve column selection
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Oct 22, 2024
1 parent 992ea95 commit 018ad5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Thruk/Controller/rest_v1.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ sub _livestatus_options {
$found = 0;
last;
}
if($col eq 'peer_name' || $col eq 'peer_key') {
next;
}
if(!$ref_columns->{$col} && $ref_columns->{'perf_data'}) {
# add perf data column if available, since this is the only column (along with custom vars) which gets expanded later
$col = "perf_data" if ! grep { $_ eq 'perf_data' } @{$columns};
Expand Down

0 comments on commit 018ad5d

Please sign in to comment.