소스 검색

AMBARI-9119. Adding service does not work on deployed cluster. (akovalenko)

Aleksandr Kovalenko 10 년 전
부모
커밋
fc2b911517
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-web/app/controllers/wizard/step7_controller.js
  2. 8 0
      ambari-web/test/controllers/wizard/step7_test.js

+ 1 - 1
ambari-web/app/controllers/wizard/step7_controller.js

@@ -843,7 +843,7 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, {
     var self = this;
 
     configsByTags.forEach(function (configSite) {
-      configsMap[configSite.type] = configSite.properties;
+      configsMap[configSite.type] = configSite.properties || {};
     });
     configs.forEach(function (_config) {
       var nonServiceTab = require('data/service_configs');

+ 8 - 0
ambari-web/test/controllers/wizard/step7_test.js

@@ -1352,6 +1352,10 @@ describe('App.InstallerStep7Controller', function () {
         {
           siteName: 'ams-hbase-site',
           tagName: 'version1'
+        },
+        {
+          siteName: 'site-without-properties',
+          tagName: 'version1'
         }
       ],
       configs = [
@@ -1382,6 +1386,10 @@ describe('App.InstallerStep7Controller', function () {
           properties: {
             'hbase.client.scanner.caching': '2500'
           }
+        },
+        {
+          type: 'site-without-properties',
+          tag: 'version1'
         }
       ],
       installedServiceNames = ['HBASE', 'AMS'];