Changing the logic to check dasStatsPublisherEnabled in login.jag

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

Branch: refs/heads/stratos-4.1.x
Commit: 5f07b2afab1e7a37f0a7e47c5f94e96d7b569b85
Parents: 28f3d45
Author: Thanuja <[email protected]>
Authored: Tue Oct 13 23:20:36 2015 +0530
Committer: gayangunarathne <[email protected]>
Committed: Wed Oct 14 14:24:33 2015 +0530

----------------------------------------------------------------------
 .../console/controllers/login/login.jag                          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/5f07b2af/components/org.apache.stratos.manager.console/console/controllers/login/login.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/controllers/login/login.jag
 
b/components/org.apache.stratos.manager.console/console/controllers/login/login.jag
index 6a78ecf..6f707c9 100644
--- 
a/components/org.apache.stratos.manager.console/console/controllers/login/login.jag
+++ 
b/components/org.apache.stratos.manager.console/console/controllers/login/login.jag
@@ -27,8 +27,8 @@ var log = new Log("controller.login"),
         offset = conf. *::['Ports']. *::['Offset'].text(),
         hostName = conf. *::['HostName'].text().toString(),
         conf = carbon.server.loadConfig('thrift-client-config.xml'),
-        dasConfig = conf. *::['config'].(name == "das"),
-        dasStatsPublisherEnabled = dasConfig.statsPublisherEnabled.text();
+        dasConfig = conf. *::['config']. *::['das'],
+        dasStatsPublisherEnabled = 
dasConfig.node[0].statsPublisherEnabled.text();
 
 
 if (hostName === null || hostName === '') {

Reply via email to