Skip to content

Commit

Permalink
agents: fix running ta -I ALL
Browse files Browse the repository at this point in the history
expand host list in that case as well
  • Loading branch information
sni committed Jan 16, 2024
1 parent 6eca023 commit 521e357
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ sub _run_add {
$opt->{'fresh'} = 1 if $opt->{'clear_manual'};

# expand "ALL" hosts
if($opt->{'fresh'} && $hosts->[0] eq 'ALL') {
if($hosts->[0] eq 'ALL') {
my $data = $c->db->get_hosts(filter => [ Thruk::Utils::Auth::get_auth_filter( $c, 'hosts' ),
'custom_variables' => { '~' => 'AGENT .+' },
],
Expand Down

0 comments on commit 521e357

Please sign in to comment.