Просмотр исходного кода

AMBARI-7556 Repository warning on host check. (ababiichuk)

aBabiichuk 10 лет назад
Родитель
Сommit
7772efb452
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      ambari-web/app/controllers/wizard/step3_controller.js

+ 4 - 4
ambari-web/app/controllers/wizard/step3_controller.js

@@ -1112,10 +1112,10 @@ App.WizardStep3Controller = Em.Controller.extend({
       var selectedOS = [];
       var self = this;
       var isValid = false;
-      if (selectedStack && selectedStack.operatingSystems) {
-        selectedStack.get('operatingSystems').filterProperty('selected', true).forEach(function (os) {
-          selectedOS.pushObject(os.osType);
-          if (self.repoToAgentOsType(os.osType).indexOf(osType) >= 0) {
+      if (selectedStack && selectedStack.get('operatingSystems')) {
+        selectedStack.get('operatingSystems').filterProperty('isSelected', true).forEach(function (os) {
+          selectedOS.pushObject(os.get('osType'));
+          if (self.repoToAgentOsType(os.get('osType')).indexOf(osType) >= 0) {
             isValid = true;
           }
         });