Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 17, 2025
1 parent e3b5862 commit 3c9f3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Thruk/Utils/Avail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ sub calculate_availability {
my $filter = [ [Thruk::Utils::Auth::get_auth_filter($c, 'hosts')] ];
my $host_data = $c->db->get_hosts(filter => $filter, columns => [qw/name state alias display_name custom_variables/]);
_die_no_matches($c, 'host', undef, @{$filter}) unless scalar @{$host_data} > 0;
for my $host (keys %{$host_data}) {
for my $host (@{$host_data}) {
$affected_backends->{$host->{'peer_key'}} = 1;
}
$host_data = Thruk::Base::array2hash($host_data, 'name');
Expand Down Expand Up @@ -426,7 +426,7 @@ sub calculate_availability {
my $filter = [ [Thruk::Utils::Auth::get_auth_filter($c, 'hosts')], $hostfilter ];
my $host_data = $c->db->get_hosts(filter => $filter, columns => [qw/name state alias display_name custom_variables/]);
_die_no_matches($c, 'host', 'hostgroup:' .$hostgroup, @{$filter}) unless scalar @{$host_data} > 0;
for my $host (keys %{$host_data}) {
for my $host (@{$host_data}) {
$affected_backends->{$host->{'peer_key'}} = 1;
}
$host_data = Thruk::Base::array2hash($host_data, 'name');
Expand Down

0 comments on commit 3c9f3b1

Please sign in to comment.