Bläddra i källkod

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

Aleksandr Kovalenko 10 år sedan
förälder
incheckning
f1a9a94921

+ 0 - 0
ambari-web/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/ambariViews/CreateViewInstanceCtrl_test.js → ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/ambariViews/CreateViewInstanceCtrl_test.js


+ 1 - 6
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.
    * On save configs handler. Open save configs popup with appropriate message.
    */
    */
   onDoPUTClusterConfigurations: function () {
   onDoPUTClusterConfigurations: function () {
-    var header, message, messageClass, value, status, urlParams = '',
+    var header, message, messageClass, value, status = 'unknown', urlParams = '',
     result = {
     result = {
       flag: this.get('saveConfigsFlag'),
       flag: this.get('saveConfigsFlag'),
       message: null,
       message: null,
@@ -1413,10 +1413,6 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM
 
 
     if (!result.flag) {
     if (!result.flag) {
       result.message = Em.I18n.t('services.service.config.failSaveConfig');
       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();
     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');
       message = Em.I18n.t('services.service.config.saved.message');
       messageClass = 'alert alert-success';
       messageClass = 'alert alert-success';
       // warn the user if any of the components are in UNKNOWN state
       // warn the user if any of the components are in UNKNOWN state
-      status = 'unknown';
       urlParams += ',ServiceComponentInfo/installed_count,ServiceComponentInfo/total_count';
       urlParams += ',ServiceComponentInfo/installed_count,ServiceComponentInfo/total_count';
       if (this.get('content.serviceName') === 'HDFS' || App.Service.find().someProperty('id', 'MAPREDUCE')) {
       if (this.get('content.serviceName') === 'HDFS' || App.Service.find().someProperty('id', 'MAPREDUCE')) {
         urlParams += '&ServiceComponentInfo/service_name.in(HDFS,MAPREDUCE)'
         urlParams += '&ServiceComponentInfo/service_name.in(HDFS,MAPREDUCE)'