Explorar el Código

AMBARI-3357 Add ha_status property to status mapper request. (atkach)

atkach hace 11 años
padre
commit
8eab479b53
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      ambari-web/app/controllers/global/cluster_controller.js

+ 2 - 1
ambari-web/app/controllers/global/cluster_controller.js

@@ -248,7 +248,8 @@ App.ClusterController = Em.Controller.extend({
       return false;
     }
     var testUrl = App.get('isHadoop2Stack') ? '/data/dashboard/HDP2/services.json':'/data/dashboard/services.json';
-    var servicesUrl = this.getUrl(testUrl, '/services?fields=ServiceInfo,components/host_components/HostRoles/desired_state,components/host_components/HostRoles/state');
+    //desired_state property is eliminated since calculateState function is commented out, it become useless
+    var servicesUrl = this.getUrl(testUrl, '/services?fields=ServiceInfo,components/host_components/HostRoles/state,components/host_components/HostRoles/ha_status');
 
     App.HttpClient.get(servicesUrl, App.statusMapper, {
       complete: callback