Browse Source

AMBARI-2804. Going back to service reconfig forgets the passwords. (xiwang via yusaku)

Yusaku Sako 12 years ago
parent
commit
662f92524c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      ambari-web/app/models/service_config.js

+ 1 - 2
ambari-web/app/models/service_config.js

@@ -190,8 +190,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
   }.property('isUserProperty', 'isOriginalSCP'),
   }.property('isUserProperty', 'isOriginalSCP'),
   init: function () {
   init: function () {
     if(this.get("displayType")=="password"){
     if(this.get("displayType")=="password"){
-      this.set('retypedPassword', this.get('defaultValue'));
-      this.set('value', this.get('defaultValue'));
+      this.set('retypedPassword', this.get('value'));
     }
     }
     if ((this.get('id') === 'puppet var') && this.get('value') == '') {
     if ((this.get('id') === 'puppet var') && this.get('value') == '') {
       this.set('value', this.get('defaultValue'));
       this.set('value', this.get('defaultValue'));