Force to update the agent cache when an agent is created by server

Former-commit-id: 0c00b9b2157e749bb33750a0715e16e91b02003c
This commit is contained in:
fermin831 2018-12-10 11:15:13 +01:00
parent 7e40392740
commit 32f665c761
1 changed files with 2 additions and 1 deletions

View File

@ -3060,7 +3060,8 @@ sub pandora_create_agent ($$$$$$$$$$;$$$$$$$$$) {
'custom_id' => $custom_id,
'url_address' => $url_address,
'timezone_offset' => $timezone_offset,
'alias' => $alias
'alias' => $alias,
'update_module_count' => 1, # Force to replicate in metaconsole
});
my $agent_id = db_insert ($dbh, 'id_agente', "INSERT INTO tagente $columns", @{$values});