bulk operations agents in meta #8290

This commit is contained in:
Daniel Barbero Martin 2022-01-25 10:28:14 +01:00
parent f19a823622
commit de77ee20c6
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ function process_manage_delete($id_agents)
$success = $agent->delete();
$node->disconnect();
$success = agent_delete_from_metaconsole(
$array_id[1],
$array_id[0]
);
} catch (\Exception $e) {
// Unexistent agent.
$success = false;