Przeglądaj źródła

AMBARI-4810. Bulk decommissioning multiple slaves makes it look like only one slave is being decommissioned. (xiwang via yusaku)

Yusaku Sako 11 lat temu
rodzic
commit
0d0fe121c9
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      ambari-web/app/utils/helper.js

+ 6 - 1
ambari-web/app/utils/helper.js

@@ -236,7 +236,8 @@ App.format = {
     'UPGRADE': 'Upgrade',
     'RESTART': 'Restart',
     'SERVICE_CHECK': 'Check',
-    'DECOMMISSION,': 'Decommission,'
+    'Excluded:': 'Decommission:',
+    'Included:': 'Recommission:'
   },
 
   /**
@@ -260,6 +261,10 @@ App.format = {
       if (item.contains('/')) {
         item = item.split('/')[1];
       }
+      // ignore 'DECOMMISSION', command came from 'excluded/included'
+      if (item == 'DECOMMISSION,') {
+        item = '';
+      }
       if (self.components[item]) {
         result = result + ' ' + self.components[item];
       } else if (self.command[item]) {