Browse Source

AMBARI-6927. Incorrect task name for decommission and recommission operations hostname.(xiwang)

Xi Wang 10 years ago
parent
commit
b39b998ece
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ambari-web/app/utils/helper.js

+ 5 - 0
ambari-web/app/utils/helper.js

@@ -431,6 +431,11 @@ App.format = {
         result = result + ' ' + self.role(item);
       }
     });
+
+    if (result.indexOf('Decommission:') > -1 || result.indexOf('Recommission:') > -1) {
+      // for Decommission command, make sure the hostname is in lower case
+       result = result.split(':')[0] + ': ' + result.split(':')[1].toLowerCase();
+    }
     if (result === ' Nagios Update Ignore Actionexecute') {
        result = Em.I18n.t('common.maintenance.task');
     }