Repository: ambari Updated Branches: refs/heads/trunk 11dd9df85 -> 0028d667c
AMBARI-5981. Hosts API should provide count of filtered hosts. Changed key. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0028d667 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0028d667 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0028d667 Branch: refs/heads/trunk Commit: 0028d667ca01cbf7460f4ec7ddd2e6706deb018a Parents: 0972cf0 Author: Siddharth Wagle <[email protected]> Authored: Sat May 31 10:54:37 2014 -0700 Committer: Siddharth Wagle <[email protected]> Committed: Sat May 31 10:54:53 2014 -0700 ---------------------------------------------------------------------- .../ambari/server/api/services/serializers/JsonSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/0028d667/ambari-server/src/main/java/org/apache/ambari/server/api/services/serializers/JsonSerializer.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/serializers/JsonSerializer.java b/ambari-server/src/main/java/org/apache/ambari/server/api/services/serializers/JsonSerializer.java index c9ec368..59d5a8a 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/serializers/JsonSerializer.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/serializers/JsonSerializer.java @@ -218,7 +218,7 @@ public class JsonSerializer implements ResultSerializer { private void writeItemCount(TreeNode<Resource> node) throws IOException { String countProp = node.getProperty("count"); if (countProp != null) { - m_generator.writeStringField("itemCount", countProp); + m_generator.writeStringField("itemTotal", countProp); // Write once node.setProperty("count", null); }
