You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/01/29 22:15:48 UTC

mesos git commit: Fixed whitespace errors in help strings for mesos/src.

Repository: mesos
Updated Branches:
  refs/heads/master 45d42f7da -> 54fe6446d


Fixed whitespace errors in help strings for mesos/src.

Previously some of the help strings included a blank space at the end of
some of their lines of text. This was causing problems when using these
strings to generate .md files and then attempting to commit them back to
the repo.

This commit removes this unnecessary whitespace.

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


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

Branch: refs/heads/master
Commit: 54fe6446dd8ba9583aebbcbca7c9e72f2acbf131
Parents: 45d42f7
Author: Kevin Klues <kl...@gmail.com>
Authored: Fri Jan 29 13:15:37 2016 -0800
Committer: Benjamin Mahler <be...@gmail.com>
Committed: Fri Jan 29 13:15:37 2016 -0800

----------------------------------------------------------------------
 src/master/http.cpp      | 15 +++++++--------
 src/master/registrar.cpp |  4 ++--
 src/slave/http.cpp       | 14 +++++++-------
 3 files changed, 16 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/54fe6446/src/master/http.cpp
----------------------------------------------------------------------
diff --git a/src/master/http.cpp b/src/master/http.cpp
index 54264f6..0422536 100644
--- a/src/master/http.cpp
+++ b/src/master/http.cpp
@@ -700,9 +700,8 @@ string Master::Http::CREATE_VOLUMES_HELP()
         "Create persistent volumes on reserved resources."),
     DESCRIPTION(
         "Returns 200 OK if volume creation was successful.",
-        "Please provide \"slaveId\" and \"volumes\" values designating ",
-        "the volumes to be created."
-      ));
+        "Please provide \"slaveId\" and \"volumes\" values designating",
+        "the volumes to be created."));
 }
 
 
@@ -805,7 +804,7 @@ string Master::Http::DESTROY_VOLUMES_HELP()
         "Destroy persistent volumes."),
     DESCRIPTION(
         "Returns 200 OK if volume deletion was successful.",
-        "Please provide \"slaveId\" and \"volumes\" values designating "
+        "Please provide \"slaveId\" and \"volumes\" values designating",
         "the volumes to be destroyed."));
 }
 
@@ -994,7 +993,7 @@ string Master::Http::OBSERVE_HELP()
     TLDR(
         "Observe a monitor health state for host(s)."),
     DESCRIPTION(
-        "This endpoint receives information indicating host(s) ",
+        "This endpoint receives information indicating host(s)",
         "health."
         "",
         "The following fields should be supplied in a POST:",
@@ -1134,7 +1133,7 @@ string Master::Http::RESERVE_HELP()
         "Reserve resources dynamically on a specific slave."),
     DESCRIPTION(
         "Returns 200 OK if resource reservation was successful.",
-        "Please provide \"slaveId\" and \"resources\" values designating ",
+        "Please provide \"slaveId\" and \"resources\" values designating",
         "the resources to be reserved."));
 }
 
@@ -1790,7 +1789,7 @@ string Master::Http::TEARDOWN_HELP()
         "Tears down a running framework by shutting down all tasks/executors "
         "and removing the framework."),
     DESCRIPTION(
-        "Please provide a \"frameworkId\" value designating the running "
+        "Please provide a \"frameworkId\" value designating the running",
         "framework to tear down.",
         "Returns 200 OK if the framework was correctly teared down."));
 }
@@ -2406,7 +2405,7 @@ string Master::Http::UNRESERVE_HELP()
         "Unreserve resources dynamically on a specific slave."),
     DESCRIPTION(
         "Returns 200 OK if resource unreservation was successful.",
-        "Please provide \"slaveId\" and \"resources\" values designating ",
+        "Please provide \"slaveId\" and \"resources\" values designating",
         "the resources to be unreserved."));
 }
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/54fe6446/src/master/registrar.cpp
----------------------------------------------------------------------
diff --git a/src/master/registrar.cpp b/src/master/registrar.cpp
index c46cc06..def40b9 100644
--- a/src/master/registrar.cpp
+++ b/src/master/registrar.cpp
@@ -253,7 +253,7 @@ string RegistrarProcess::registryHelp()
       TLDR(
           "Returns the current contents of the Registry in JSON."),
       DESCRIPTION(
-          "Example:"
+          "Example:",
           "",
           "```",
           "{",
@@ -279,7 +279,7 @@ string RegistrarProcess::registryHelp()
           "          \"checkpoint\": true,",
           "          \"hostname\": \"localhost\",",
           "          \"id\":",
-          "          { ",
+          "          {",
           "            \"value\": \"20140325-234618-1740121354-5050-29065-0\"",
           "          },",
           "          \"port\": 5051,",

http://git-wip-us.apache.org/repos/asf/mesos/blob/54fe6446/src/slave/http.cpp
----------------------------------------------------------------------
diff --git a/src/slave/http.cpp b/src/slave/http.cpp
index 0ba2e82..9167030 100644
--- a/src/slave/http.cpp
+++ b/src/slave/http.cpp
@@ -203,13 +203,13 @@ string Slave::Http::EXECUTOR_HELP() {
     TLDR(
         "Endpoint for the Executor HTTP API."),
     DESCRIPTION(
-        "This endpoint is used by the executors to interact with the ",
-        "agent via Call/Event messages."
-        "Returns 200 OK iff the initial SUBSCRIBE Call is successful."
-        "This would result in a streaming response via chunked "
-        "transfer encoding. The executors can process the response "
-        "incrementally."
-        "Returns 202 Accepted for all other Call messages iff the "
+        "This endpoint is used by the executors to interact with the",
+        "agent via Call/Event messages.",
+        "Returns 200 OK iff the initial SUBSCRIBE Call is successful.",
+        "This would result in a streaming response via chunked",
+        "transfer encoding. The executors can process the response",
+        "incrementally.",
+        "Returns 202 Accepted for all other Call messages iff the",
         "request is accepted."));
 }