You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/01/19 04:19:52 UTC
mesos git commit: Added missing `json` function for `ContainerStatus`.
Repository: mesos
Updated Branches:
refs/heads/master 684b551b0 -> e7b4ba423
Added missing `json` function for `ContainerStatus`.
Review: https://reviews.apache.org/r/42478
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e7b4ba42
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e7b4ba42
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e7b4ba42
Branch: refs/heads/master
Commit: e7b4ba423f380113ab1937a3c506d82b3b8169ea
Parents: 684b551
Author: Michael Park <mp...@apache.org>
Authored: Mon Jan 18 09:46:44 2016 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Mon Jan 18 19:20:06 2016 -0800
----------------------------------------------------------------------
src/common/http.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/e7b4ba42/src/common/http.cpp
----------------------------------------------------------------------
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 6d88091..b7e71eb 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -473,6 +473,14 @@ void json(JSON::ObjectWriter* writer, const CommandInfo& command)
}
+void json(JSON::ObjectWriter* writer, const ContainerStatus& status)
+{
+ if (status.network_infos().size() > 0) {
+ writer->field("network_infos", status.network_infos());
+ }
+}
+
+
void json(JSON::ObjectWriter* writer, const ExecutorInfo& executorInfo)
{
writer->field("executor_id", executorInfo.executor_id().value());