Browse Source

AMBARI-2311. Service having master components on host with heartbeat lost doesn't indicate correct status. (Oleg Nechiporenko via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1490764 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
c29a6828e9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ambari-web/app/models/service.js

+ 2 - 2
ambari-web/app/models/service.js

@@ -58,12 +58,12 @@ App.Service = DS.Model.extend({
 
     if (isGreen) {
       this.set('healthStatus', 'green');
+    } else if (components.someProperty('workStatus', App.HostComponentStatus.unknown)) {
+      this.set('healthStatus', 'yellow');
     } else if (components.someProperty('workStatus', App.HostComponentStatus.starting)) {
       this.set('healthStatus', 'green-blinking');
     } else if (components.someProperty('workStatus', App.HostComponentStatus.stopped)) {
       this.set('healthStatus', 'red');
-    } else if (components.someProperty('workStatus', App.HostComponentStatus.unknown)) {
-      this.set('healthStatus', 'yellow');
     } else {
       this.set('healthStatus', 'red-blinking');
     }