You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2015/12/19 01:35:29 UTC

[4/6] mesos git commit: Modified ptotobuf::createTask to use ContainerInfo from internal Task protobuf.

Modified ptotobuf::createTask to use ContainerInfo from internal Task
protobuf.

Review: https://reviews.apache.org/r/41421/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7a5ff039
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7a5ff039
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7a5ff039

Branch: refs/heads/master
Commit: 7a5ff03960a245b9ee812b8880f95b102cc67d7f
Parents: cb937c7
Author: Artem Harutyunyan <ar...@mesosphere.io>
Authored: Fri Dec 18 16:10:22 2015 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Dec 18 16:35:18 2015 -0800

----------------------------------------------------------------------
 src/common/protobuf_utils.cpp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/7a5ff039/src/common/protobuf_utils.cpp
----------------------------------------------------------------------
diff --git a/src/common/protobuf_utils.cpp b/src/common/protobuf_utils.cpp
index 6e1eb0b..277e8ad 100644
--- a/src/common/protobuf_utils.cpp
+++ b/src/common/protobuf_utils.cpp
@@ -174,6 +174,10 @@ Task createTask(
     t.mutable_discovery()->MergeFrom(task.discovery());
   }
 
+  if (task.has_container()) {
+    t.mutable_container()->CopyFrom(task.container());
+  }
+
   return t;
 }