Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 6e40a15d4 -> a02000468


AMBARI-7757. Unable to save configs in SUSE, stack 2.1. (akovalenko)


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

Branch: refs/heads/branch-1.7.0
Commit: a0200046873c01db4272bc8ebc78689d9ccd1f98
Parents: 6e40a15
Author: Aleksandr Kovalenko <[email protected]>
Authored: Mon Oct 13 18:51:55 2014 +0300
Committer: Aleksandr Kovalenko <[email protected]>
Committed: Mon Oct 13 18:51:55 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/configs.js | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a0200046/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js 
b/ambari-web/app/controllers/main/service/info/configs.js
index 99e301a..8ef2bbf 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -1402,7 +1402,7 @@ App.MainServiceInfoConfigsController = 
Em.Controller.extend(App.ServerValidatorM
    * On save configs handler. Open save configs popup with appropriate message.
    */
   onDoPUTClusterConfigurations: function () {
-    var header, message, messageClass, value, status, urlParams = '',
+    var header, message, messageClass, value, status = 'unknown', urlParams = 
'',
     result = {
       flag: this.get('saveConfigsFlag'),
       message: null,
@@ -1413,10 +1413,6 @@ App.MainServiceInfoConfigsController = 
Em.Controller.extend(App.ServerValidatorM
 
     if (!result.flag) {
       result.message = Em.I18n.t('services.service.config.failSaveConfig');
-    } else {
-      if (!result.flag) {
-        result.message = 
Em.I18n.t('services.service.config.failSaveConfigHostOverrides');
-      }
     }
 
     App.router.get('clusterController').updateClusterData();
@@ -1428,7 +1424,6 @@ App.MainServiceInfoConfigsController = 
Em.Controller.extend(App.ServerValidatorM
       message = Em.I18n.t('services.service.config.saved.message');
       messageClass = 'alert alert-success';
       // warn the user if any of the components are in UNKNOWN state
-      status = 'unknown';
       urlParams += 
',ServiceComponentInfo/installed_count,ServiceComponentInfo/total_count';
       if (this.get('content.serviceName') === 'HDFS' || 
App.Service.find().someProperty('id', 'MAPREDUCE')) {
         urlParams += '&ServiceComponentInfo/service_name.in(HDFS,MAPREDUCE)'

Reply via email to