ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [33/50] [abbrv] git commit: AMBARI-6927. Incorrect task name for decommission and recommission operations hostname.(xiwang)
Date Wed, 20 Aug 2014 15:30:34 GMT
AMBARI-6927. Incorrect task name for decommission and recommission operations hostname.(xiwang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b39b998e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b39b998e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b39b998e

Branch: refs/heads/branch-alerts-dev
Commit: b39b998ece510c00f2bae6b9430618ebd9b78d2a
Parents: e1eaf3a
Author: Xi Wang <xiwang@apache.org>
Authored: Tue Aug 19 14:48:58 2014 -0700
Committer: Xi Wang <xiwang@apache.org>
Committed: Tue Aug 19 15:15:57 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/utils/helper.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b39b998e/ambari-web/app/utils/helper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/helper.js b/ambari-web/app/utils/helper.js
index d31491c..c22759d 100644
--- a/ambari-web/app/utils/helper.js
+++ b/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');
     }


Mime
View raw message