fix(virtualservices): typo (#2949)
This commit is contained in:
parent
12a49a2ea6
commit
79e47e098a
|
@ -342,7 +342,7 @@ sub manage_selection {
|
||||||
foreach my $vcurve (keys %{$config_data->{virtualcurve}}) {
|
foreach my $vcurve (keys %{$config_data->{virtualcurve}}) {
|
||||||
$self->{vmetrics}->{$vcurve}->{values} = [] if (!defined($self->{vmetrics}->{$vcurve}->{values}));
|
$self->{vmetrics}->{$vcurve}->{values} = [] if (!defined($self->{vmetrics}->{$vcurve}->{values}));
|
||||||
if (defined($config_data->{virtualcurve}->{$vcurve}->{pattern}) && $config_data->{virtualcurve}->{$vcurve}->{pattern} ne '') {
|
if (defined($config_data->{virtualcurve}->{$vcurve}->{pattern}) && $config_data->{virtualcurve}->{$vcurve}->{pattern} ne '') {
|
||||||
push (@{$self->{vmetrics}->{$vcurve}->{values}}, $self->{metrics}->{$metric}->{current}) if $self->{metrics}->{$metric}->{name} =~ /$config_data->{virtualcurve}{$vcurve}->{pattern}/;
|
push (@{$self->{vmetrics}->{$vcurve}->{values}}, $self->{metrics}->{$metric}->{current}) if $self->{metrics}->{$metric}->{name} =~ /$config_data->{virtualcurve}->{$vcurve}->{pattern}/;
|
||||||
} else {
|
} else {
|
||||||
push (@{$self->{vmetrics}->{$vcurve}->{values}}, $self->{metrics}->{$metric}->{current});
|
push (@{$self->{vmetrics}->{$vcurve}->{values}}, $self->{metrics}->{$metric}->{current});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue