ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-9565 Add service wizard: check (and fix if needed) handling KDC credentials error (additional patch). (ababiichuk)
Date Thu, 12 Feb 2015 13:59:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f95eb9529 -> c474a7515


AMBARI-9565 Add service wizard: check (and fix if needed) handling KDC credentials error (additional
patch). (ababiichuk)


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

Branch: refs/heads/trunk
Commit: c474a75150da7f2e04d95cad7e9ce02bf0c5b38d
Parents: f95eb95
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Thu Feb 12 15:51:15 2015 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Thu Feb 12 15:51:15 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/utils/ajax/ajax.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c474a751/ambari-web/app/utils/ajax/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js
index 6d7453c..bfbc2dd 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -2459,9 +2459,10 @@ var ajax = Em.Object.extend({
       var message = $.parseJSON(jqXHR.responseText).message;
     } catch (err) {}
     if (jqXHR.status === 400 && message) {
-      return message.contains(specialMsg.missingKDC) ? specialMsg.missingKDC
-        : message.contains(specialMsg.invalidKDC) ? specialMsg.invalidKDC :
-        specialMsg.missingRDCForRealm ? specialMsg.missingRDCForRealm : null;
+      for(var m in specialMsg) {
+        if (specialMsg.hasOwnProperty(m) && message.contains(specialMsg[m]))
+          return m;
+      }
     } else {
       return null;
     }


Mime
View raw message