You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/08/28 12:01:38 UTC

[2/2] ambari git commit: AMBARI-12868. Improve calls to the localStorage (onechiporenko)

AMBARI-12868. Improve calls to the localStorage (onechiporenko)


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

Branch: refs/heads/branch-2.1
Commit: 33c694b181c5c1c10293bc4ecf008d54960fc23b
Parents: e04050e
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Aug 28 12:53:36 2015 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Fri Aug 28 12:53:36 2015 +0300

----------------------------------------------------------------------
 .../app/controllers/main/admin/stack_and_upgrade_controller.js   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/33c694b1/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
index fa5b479..ddca7f1 100644
--- a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
+++ b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
@@ -163,7 +163,9 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
   initDBProperties: function () {
     var props = this.getDBProperties(this.get('wizardStorageProperties'));
     Em.keys(props).forEach(function (k) {
-      this.set(k, props[k]);
+      if (props[k]) {
+        this.set(k, props[k]);
+      }
     }, this);
   },