You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2014/05/09 23:00:17 UTC

git commit: AMBARI-5717. Installer: repo URLs are not saved after customization if 'skip' option is chosen.(xiwang)

Repository: ambari
Updated Branches:
  refs/heads/trunk 074f5ae9d -> f270e9016


AMBARI-5717. Installer: repo URLs are not saved after customization if 'skip' option is chosen.(xiwang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f270e901
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f270e901
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f270e901

Branch: refs/heads/trunk
Commit: f270e9016422110df238df8afe45b433446c387d
Parents: 074f5ae
Author: Xi Wang <xi...@apache.org>
Authored: Fri May 9 11:29:42 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Fri May 9 13:59:40 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/installer.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f270e901/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index 8ed9884..471f37a 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -502,10 +502,8 @@ App.InstallerController = App.WizardController.extend({
       selectedStack.operatingSystems.forEach(function (os) {
         os.errorTitle = null;
         os.errorContent = null;
-        if (os.skipValidation) {
-          this.set('validationCnt', 0);
-        }
-        if (os.selected && !os.skipValidation) {
+        var verifyBaseUrl = os.skipValidation ? false: true;
+        if (os.selected ) {
           os.validation = 'icon-repeat';
           selectedStack.set('reload', !selectedStack.get('reload'));
           App.ajax.send({
@@ -518,7 +516,8 @@ App.InstallerController = App.WizardController.extend({
               osType: os.osType,
               data: {
                 'Repositories': {
-                  'base_url': os.baseUrl
+                  'base_url': os.baseUrl,
+                  "verify_base_url": verifyBaseUrl
                 }
               }
             },