Parcourir la source

AMBARI-5470. Error on Step 9 on Deploy. (jaimin via srimanth)

Srimanth Gunturi il y a 11 ans
Parent
commit
5c0e09ca9f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      ambari-web/app/controllers/wizard/step8_controller.js

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

@@ -949,8 +949,8 @@ App.WizardStep8Controller = Em.Controller.extend({
   setLocalRepositories: function () {
     if (this.get('content.controllerName') !== 'installerController' || !App.supports.localRepositories) return;
     var self = this;
-
-    this.get('content.stacks').findProperty('isSelected', true).operatingSystems.forEach(function (os) {
+    var stack = this.get('content.stacks').findProperty('isSelected', true);
+    stack.operatingSystems.forEach(function (os) {
       if (os.baseUrl !== os.originalBaseUrl) {
         console.log("Updating local repository URL from " + os.originalBaseUrl + " -> " + os.baseUrl + ". ", os);
         self.addRequestToAjaxQueue({