Merge branch '2759-crear-iso-precargada-enterprise-para-demos' into 'develop'

Minor fix in cde cluster api methods

See merge request artica/pandorafms!1864
This commit is contained in:
vgilc 2018-10-25 10:34:39 +02:00
commit 5a551da1f8
1 changed files with 2 additions and 0 deletions

View File

@ -11309,6 +11309,7 @@ function api_get_cluster_status($id_cluster, $trash1, $trash2, $returnType) {
if ($value === false) { if ($value === false) {
returnError('id_not_found', $returnType); returnError('id_not_found', $returnType);
return;
} }
$data = array('type' => 'string', 'data' => $value); $data = array('type' => 'string', 'data' => $value);
@ -11326,6 +11327,7 @@ function api_get_cluster_id_by_name($cluster_name, $trash1, $trash2, $returnType
$value = cluster_get_id_by_name($cluster_name); $value = cluster_get_id_by_name($cluster_name);
if(($value === false) || ($value === null)){ if(($value === false) || ($value === null)){
returnError('id_not_found', $returnType); returnError('id_not_found', $returnType);
return;
} }
$cluster_group = clusters_get_group($value); $cluster_group = clusters_get_group($value);