diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b8d038f414..ccec59c1a1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-08-21 Dario Rodriguez + + * operation/agentes/ver_agente.php: Added code to support new + RHEV enterprise extension. + 2012-08-16 Vanessa Gil * pandoradb.oracle.sql diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 3b1a69a5a3..ec8117e36a 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -701,6 +701,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'];