Repository: mesos Updated Branches: refs/heads/master c23932d57 -> d88c9f977
Fixed logic error in mesos-execute. Review: https://reviews.apache.org/r/46102/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d88c9f97 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d88c9f97 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d88c9f97 Branch: refs/heads/master Commit: d88c9f97725bb357c8144f60eb03dde6e6369e9f Parents: c23932d Author: Guangya Liu <gyliu...@gmail.com> Authored: Wed Apr 13 12:33:49 2016 +0200 Committer: Alexander Rukletsov <al...@apache.org> Committed: Wed Apr 13 12:33:49 2016 +0200 ---------------------------------------------------------------------- src/cli/execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/d88c9f97/src/cli/execute.cpp ---------------------------------------------------------------------- diff --git a/src/cli/execute.cpp b/src/cli/execute.cpp index 306779f..7a29a38 100644 --- a/src/cli/execute.cpp +++ b/src/cli/execute.cpp @@ -452,7 +452,7 @@ protected: if (status.has_source()) { cout << " source: " << TaskStatus::Source_Name(status.source()) << endl; } - if (status.has_source()) { + if (status.has_reason()) { cout << " reason: " << TaskStatus::Reason_Name(status.reason()) << endl; } if (status.has_healthy()) {