From 521e357afdc73437d0d34596d178681f7e133340 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Tue, 16 Jan 2024 11:39:42 +0100 Subject: [PATCH] agents: fix running ta -I ALL expand host list in that case as well --- plugins/plugins-available/agents/lib/Thruk/Utils/CLI/Agents.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugins-available/agents/lib/Thruk/Utils/CLI/Agents.pm b/plugins/plugins-available/agents/lib/Thruk/Utils/CLI/Agents.pm index 2689fc53e..d41d2ab7c 100644 --- a/plugins/plugins-available/agents/lib/Thruk/Utils/CLI/Agents.pm +++ b/plugins/plugins-available/agents/lib/Thruk/Utils/CLI/Agents.pm @@ -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 .+' }, ],