Skip to content

Commit

Permalink
fix: replace hardcoded id with $plugin->opts->label
Browse files Browse the repository at this point in the history
  • Loading branch information
slauger committed Sep 9, 2020
1 parent 5c0ef0a commit 2c623d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_netscaler.pl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ sub check_keyword {
my $label;

if ( $plugin->opts->label ) {
$label = $response->{'id'};
$label = $response->{$plugin->opts->label};
} else {
$label = $response_id;
}
Expand Down Expand Up @@ -765,7 +765,7 @@ sub check_threshold_and_get_perfdata {
my $label;

if ( $plugin->opts->label ) {
$label = $response->{'id'};
$label = $response->{$plugin->opts->label};
} else {
$label = $response_id;
}
Expand Down

0 comments on commit 2c623d3

Please sign in to comment.