You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by me...@apache.org on 2017/02/09 05:56:47 UTC

mesos git commit: Added framework principal to the agent state endpoint.

Repository: mesos
Updated Branches:
  refs/heads/master 7c0be16d3 -> 792e1a617


Added framework principal to the agent state endpoint.

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


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

Branch: refs/heads/master
Commit: 792e1a617eaba3d42226dd4edefe1ae583412b77
Parents: 7c0be16
Author: Jeff Malnick <ma...@gmail.com>
Authored: Wed Feb 8 21:54:28 2017 -0800
Committer: Adam B <ad...@mesosphere.io>
Committed: Wed Feb 8 21:54:28 2017 -0800

----------------------------------------------------------------------
 src/slave/http.cpp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/792e1a61/src/slave/http.cpp
----------------------------------------------------------------------
diff --git a/src/slave/http.cpp b/src/slave/http.cpp
index d68c9ad..ccd489d 100644
--- a/src/slave/http.cpp
+++ b/src/slave/http.cpp
@@ -243,6 +243,10 @@ struct FrameworkWriter
     writer->field("checkpoint", framework_->info.checkpoint());
     writer->field("hostname", framework_->info.hostname());
 
+    if (framework_->info.has_principal()) {
+      writer->field("principal", framework_->info.principal());
+    }
+
     // For multi-role frameworks the `role` field will be unset.
     // Note that we could set `roles` here for both cases, which
     // would make tooling simpler (only need to look for `roles`).