mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
check for agent name not empty
This commit is contained in:
parent
1de44686a1
commit
8a43fbfd1f
@ -3429,11 +3429,6 @@ sub cli_agent_update() {
|
|||||||
my @id_agents;
|
my @id_agents;
|
||||||
my $id_agent;
|
my $id_agent;
|
||||||
|
|
||||||
# Check for mandatory fields.
|
|
||||||
if ($field eq 'agent_name' && !$new_value) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (defined $use_alias and $use_alias eq 'use_alias') {
|
if (defined $use_alias and $use_alias eq 'use_alias') {
|
||||||
@id_agents = get_agent_ids_from_alias($dbh,$agent_name);
|
@id_agents = get_agent_ids_from_alias($dbh,$agent_name);
|
||||||
foreach my $id (@id_agents) {
|
foreach my $id (@id_agents) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user