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:
commit
5a551da1f8
|
@ -11309,6 +11309,7 @@ function api_get_cluster_status($id_cluster, $trash1, $trash2, $returnType) {
|
|||
|
||||
if ($value === false) {
|
||||
returnError('id_not_found', $returnType);
|
||||
return;
|
||||
}
|
||||
|
||||
$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);
|
||||
if(($value === false) || ($value === null)){
|
||||
returnError('id_not_found', $returnType);
|
||||
return;
|
||||
}
|
||||
|
||||
$cluster_group = clusters_get_group($value);
|
||||
|
|
Loading…
Reference in New Issue