2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_modules.php: fixed the massive copy modules between agents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8705 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
893a36149c
commit
b58faa2944
|
@ -1,3 +1,8 @@
|
|||
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_modules.php: fixed the massive copy modules
|
||||
between agents.
|
||||
|
||||
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor.php,
|
||||
|
|
|
@ -200,16 +200,14 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
|
|||
|
||||
$id_agente = modules_get_agentmodule_agent($id_agent_module);
|
||||
|
||||
$file = enterprise_hook('config_agents_get_agent_config_filenames', $id_agente);
|
||||
$agent_md5 = $file['md5'];
|
||||
$remote_conf = $file['conf'];
|
||||
if (enterprise_installed()) {
|
||||
if (config_agents_has_remote_configuration($id_agente)) {
|
||||
$result = enterprise_hook('config_agents_copy_agent_module_to_agent',
|
||||
array($id_agent_module, $id_new_module));
|
||||
|
||||
if ($remote_conf) {
|
||||
$result = enterprise_hook('config_agents_copy_agent_module_to_agent',
|
||||
array($id_agent_module, $id_new_module));
|
||||
|
||||
if ($result === false)
|
||||
return false;
|
||||
if ($result === false)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return $id_new_module;
|
||||
|
|
Loading…
Reference in New Issue