mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed output of two CLI funtions. Tiquet: #3510
(cherry picked from commit d4ebe9761cabde7ccfed411a8fecbf47f2ba6cff)
This commit is contained in:
parent
693d959f1d
commit
83dd7703b2
@ -3199,6 +3199,7 @@ sub cli_get_agent_group() {
|
||||
my $id_group = get_agent_group ($dbh_metaconsole, $id_agent);
|
||||
my $group_name = get_group_name ($dbh_metaconsole, $id_group);
|
||||
my $metaconsole_name = enterprise_hook('get_metaconsole_setup_server_name',[$dbh, $server]);
|
||||
$agent_name = safe_output($agent_name);
|
||||
print "[INFO] Server: $metaconsole_name Agent: $agent_name Name Group: $group_name\n\n";
|
||||
}
|
||||
}
|
||||
@ -3247,6 +3248,7 @@ sub cli_get_agent_group_id() {
|
||||
}
|
||||
else {
|
||||
my $id_group = get_agent_group ($dbh_metaconsole, $id_agent);
|
||||
$agent_name = safe_output($agent_name);
|
||||
print "Server: $metaconsole_name Agent: $agent_name ID Group: $id_group\n\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user