You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2016/02/16 19:30:11 UTC
[06/50] [abbrv] ambari git commit: AMBARI-14998: Server 500 error on
trying to extract a blueprint for all clusters
AMBARI-14998: Server 500 error on trying to extract a blueprint for all clusters
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f247ddcf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f247ddcf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f247ddcf
Branch: refs/heads/branch-dev-patch-upgrade
Commit: f247ddcfa6c7cc48508cbcfa1e681169dce3b495
Parents: 2871d67
Author: Nahappan Somasundaram <ns...@hortonworks.com>
Authored: Wed Feb 10 14:41:12 2016 -0800
Committer: Nahappan Somasundaram <ns...@hortonworks.com>
Committed: Thu Feb 11 10:35:00 2016 -0800
----------------------------------------------------------------------
.../server/controller/AmbariManagementControllerImpl.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/f247ddcf/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
index 69b3348..0b26f61 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
@@ -1018,7 +1018,11 @@ public class AmbariManagementControllerImpl implements AmbariManagementControlle
// If the user is authorized to view information about this cluster, add it to the response
// if (AuthorizationHelper.isAuthorized(ResourceType.CLUSTER, c.getResourceId(),
// RoleAuthorization.AUTHORIZATIONS_VIEW_CLUSTER)) {
- response.add(c.convertToResponse());
+ ClusterResponse cr = c.convertToResponse();
+ cr.setDesiredConfigs(c.getDesiredConfigs());
+ cr.setDesiredServiceConfigVersions(c.getActiveServiceConfigVersions());
+ cr.setCredentialStoreServiceProperties(getCredentialStoreServiceProperties());
+ response.add(cr);
// }
}
StringBuilder builder = new StringBuilder();