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 2017/12/12 03:00:38 UTC

mesos git commit: Fixed the agent state endpoint to show proper agent capabilities.

Repository: mesos
Updated Branches:
  refs/heads/master 04ea195de -> 256cd8156


Fixed the agent state endpoint to show proper agent capabilities.

Currently, the agent capabilities can be controlled by an agent flag.
This patch fixed the agent state endpoint by showing the agent
capabilities properly.

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


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

Branch: refs/heads/master
Commit: 256cd8156aa6e842719ae67cf40fec7f6163a0f0
Parents: 04ea195
Author: Jie Yu <yu...@gmail.com>
Authored: Mon Dec 11 17:30:50 2017 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Dec 11 19:00:30 2017 -0800

----------------------------------------------------------------------
 src/slave/http.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/256cd815/src/slave/http.cpp
----------------------------------------------------------------------
diff --git a/src/slave/http.cpp b/src/slave/http.cpp
index f71adbc..2e0ebc6 100644
--- a/src/slave/http.cpp
+++ b/src/slave/http.cpp
@@ -1348,7 +1348,7 @@ Future<Response> Http::state(
         writer->field("id", slave->info.id().value());
         writer->field("pid", string(slave->self()));
         writer->field("hostname", slave->info.hostname());
-        writer->field("capabilities", AGENT_CAPABILITIES());
+        writer->field("capabilities", slave->capabilities.toRepeatedPtrField());
 
         if (slave->info.has_domain()) {
           writer->field("domain", slave->info.domain());