You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/04/25 23:31:59 UTC

[06/50] mesos git commit: Added missing `json` function for `ContainerStatus`.

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/8f32e536
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/8f32e536
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/8f32e536

Branch: refs/heads/0.26.x
Commit: 8f32e536d66baaae091147ce67a1280326cd52f8
Parents: 0f56310
Author: Michael Park <mp...@apache.org>
Authored: Mon Jan 18 09:46:44 2016 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Fri Feb 26 20:59:04 2016 -0800

----------------------------------------------------------------------
 src/common/http.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/8f32e536/src/common/http.cpp
----------------------------------------------------------------------
diff --git a/src/common/http.cpp b/src/common/http.cpp
index e547708..93d1d82 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -445,6 +445,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());