You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2017/01/24 01:08:02 UTC

[22/25] mesos git commit: Fixed whitespace in mesos-execute.

Fixed whitespace in mesos-execute.

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


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

Branch: refs/heads/master
Commit: ce9e00fae80c9be81c365a307e3a102f0c612ac1
Parents: f361b08
Author: Neil Conway <ne...@gmail.com>
Authored: Mon Jan 23 17:04:55 2017 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Mon Jan 23 17:07:27 2017 -0800

----------------------------------------------------------------------
 src/cli/execute.cpp | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ce9e00fa/src/cli/execute.cpp
----------------------------------------------------------------------
diff --git a/src/cli/execute.cpp b/src/cli/execute.cpp
index aee3d80..16da356 100644
--- a/src/cli/execute.cpp
+++ b/src/cli/execute.cpp
@@ -501,21 +501,21 @@ protected:
           _task.mutable_resources()->CopyFrom(resources.get());
         } else {
           foreach (TaskInfo _task, taskGroup->tasks()) {
-              _task.mutable_agent_id()->MergeFrom(offer.agent_id());
+            _task.mutable_agent_id()->MergeFrom(offer.agent_id());
 
-              // Takes resources first from the specified role, then from '*'.
-              Try<Resources> flattened =
-                Resources(_task.resources()).flatten(frameworkInfo.role());
+            // Takes resources first from the specified role, then from '*'.
+            Try<Resources> flattened =
+              Resources(_task.resources()).flatten(frameworkInfo.role());
 
-              // `frameworkInfo.role()` must be valid as it's allowed to
-              // register.
-              CHECK_SOME(flattened);
-              Option<Resources> resources = offered.find(flattened.get());
+            // `frameworkInfo.role()` must be valid as it's allowed to
+            // register.
+            CHECK_SOME(flattened);
+            Option<Resources> resources = offered.find(flattened.get());
 
-              CHECK_SOME(resources);
+            CHECK_SOME(resources);
 
-              _task.mutable_resources()->CopyFrom(resources.get());
-              _taskGroup.add_tasks()->CopyFrom(_task);
+            _task.mutable_resources()->CopyFrom(resources.get());
+            _taskGroup.add_tasks()->CopyFrom(_task);
           }
        }
        Call call;