2012-08-21 Dario Rodriguez <dario.rodriguez@artica.es>

* operation/agentes/ver_agente.php: Added code to support new
        RHEV enterprise extension.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6895 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2012-08-21 15:45:29 +00:00
parent ece2fcc765
commit 45f56cdfdf
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-08-21 Dario Rodriguez <dario.rodriguez@artica.es>
* operation/agentes/ver_agente.php: Added code to support new
RHEV enterprise extension.
2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.oracle.sql

View File

@ -702,6 +702,22 @@ foreach($config['extensions'] as $extension) {
}
//RHEV extension is only available for RHEV Virtual Machines
if ($extension['extension_ope_tab']['id'] === "rhev_manager") {
//Get id for remote field "rhev_type"
$id_remote_field = db_get_value("id_field", "tagent_custom_fields", "name", "rhev_type");
//Get rhev type for this agent
$rhev_type = db_get_value_filter ("description", "tagent_custom_data", array ("id_field" => $id_remote_field, "id_agent" => $agent['id_agente']));
//Check if rhev type is a vm
if ($rhev_type != "vm") {
continue;
}
}
$image = $extension['extension_ope_tab']['icon'];
$name = $extension['extension_ope_tab']['name'];
$id = $extension['extension_ope_tab']['id'];