Pārlūkot izejas kodu

AMBARI-4550. Add host wizard has an empty Repositories field. (xiwang via yusaku)

Yusaku Sako 11 gadi atpakaļ
vecāks
revīzija
a627a68bb6

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

@@ -415,7 +415,7 @@ App.WizardStep8Controller = Em.Controller.extend({
     var supportedOs = ['redhat5', 'redhat6', 'sles11'];
     var supportedOs = ['redhat5', 'redhat6', 'sles11'];
     data.items.forEach(function (item) {
     data.items.forEach(function (item) {
       var os = item.repositories[0].Repositories;
       var os = item.repositories[0].Repositories;
-      if (supportedOs.contains(os.osType)) {
+      if (supportedOs.contains(os.os_type)) {
         allRepos.push(Em.Object.create({
         allRepos.push(Em.Object.create({
           base_url: os.base_url,
           base_url: os.base_url,
           os_type: Em.I18n.t("installer.step8.repoInfo.osType." + os.os_type)
           os_type: Em.I18n.t("installer.step8.repoInfo.osType." + os.os_type)