Refrained from setting `ExecutorInfo.source` in example frameworks.

`Executor.source` is deprecated since Mesos 1.0.


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

Branch: refs/heads/master
Commit: 7d672512b1aec359680f0781d8647ac156d48591
Parents: 90c4b70
Author: Armand Grillet <agril...@mesosphere.io>
Authored: Thu Aug 10 16:52:17 2017 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Thu Aug 10 17:04:27 2017 +0200

----------------------------------------------------------------------
 src/examples/long_lived_framework.cpp | 1 -
 src/examples/test_framework.cpp       | 1 -
 src/examples/test_http_framework.cpp  | 1 -
 3 files changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/7d672512/src/examples/long_lived_framework.cpp
----------------------------------------------------------------------
diff --git a/src/examples/long_lived_framework.cpp 
b/src/examples/long_lived_framework.cpp
index 2a79dfd..6e80f50 100644
--- a/src/examples/long_lived_framework.cpp
+++ b/src/examples/long_lived_framework.cpp
@@ -581,7 +581,6 @@ int main(int argc, char** argv)
   executor.mutable_executor_id()->set_value("default");
   executor.mutable_resources()->CopyFrom(resources);
   executor.set_name("Long Lived Executor (C++)");
-  executor.set_source("cpp_long_lived_framework");
 
   // Determine the command to run the executor based on three possibilities:
   //   1) `--executor_command` was set, which overrides the below cases.

http://git-wip-us.apache.org/repos/asf/mesos/blob/7d672512/src/examples/test_framework.cpp
----------------------------------------------------------------------
diff --git a/src/examples/test_framework.cpp b/src/examples/test_framework.cpp
index 9dbc18b..e9235a0 100644
--- a/src/examples/test_framework.cpp
+++ b/src/examples/test_framework.cpp
@@ -252,7 +252,6 @@ int main(int argc, char** argv)
   executor.mutable_executor_id()->set_value("default");
   executor.mutable_command()->set_value(uri);
   executor.set_name("Test Executor (C++)");
-  executor.set_source("cpp_test");
 
   FrameworkInfo framework;
   framework.set_user(""); // Have Mesos fill in the current user.

http://git-wip-us.apache.org/repos/asf/mesos/blob/7d672512/src/examples/test_http_framework.cpp
----------------------------------------------------------------------
diff --git a/src/examples/test_http_framework.cpp 
b/src/examples/test_http_framework.cpp
index a0cd84a..d51a751 100644
--- a/src/examples/test_http_framework.cpp
+++ b/src/examples/test_http_framework.cpp
@@ -456,7 +456,6 @@ int main(int argc, char** argv)
   executor.mutable_executor_id()->set_value("default");
   executor.mutable_command()->set_value(uri);
   executor.set_name("Test Executor (C++)");
-  executor.set_source("cpp_test");
 
   value = os::getenv("DEFAULT_PRINCIPAL");
   if (value.isNone()) {

Reply via email to