You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/06/16 23:54:26 UTC

[2/2] ambari git commit: AMBARI-11944. Service Accts names are not correct on add service (alexantonenko)

AMBARI-11944. Service Accts names are not correct on add service (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 5c47a61f390fe0ea565b3ab9b3303f4ed984b592
Parents: 1cdf886
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue Jun 16 15:29:19 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Jun 17 00:53:55 2015 +0300

----------------------------------------------------------------------
 .../controllers/main/admin/serviceAccounts_controller.js    | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5c47a61f/ambari-web/app/controllers/main/admin/serviceAccounts_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/serviceAccounts_controller.js b/ambari-web/app/controllers/main/admin/serviceAccounts_controller.js
index e4f1918..1b1b674 100644
--- a/ambari-web/app/controllers/main/admin/serviceAccounts_controller.js
+++ b/ambari-web/app/controllers/main/admin/serviceAccounts_controller.js
@@ -81,6 +81,15 @@ App.MainAdminServiceAccountsController = App.MainServiceInfoConfigsController.ex
 
     miscConfigs = App.config.miscConfigVisibleProperty(miscConfigs, App.Service.find().mapProperty('serviceName').concat('MISC'));
 
+    // load specific users along the wizards which called <code>loadUsers</code> method
+    var wizardContentProperties = [
+      {key: 'group', configName: 'user_group'},
+      {key: 'smokeuser', configName: 'smokeuser'},
+      {key: 'hdfsUser', configName: 'hdfs_user'}
+    ];
+    wizardContentProperties.forEach(function(item) {
+      this.setContentProperty(item.key, item.configName, miscConfigs);
+    }, this);
     this.set('users', miscConfigs.filterProperty('isVisible'));
     this.set('dataIsLoaded', true);
   },