Repository: mesos
Updated Branches:
  refs/heads/master 1f988a35b -> 2d83d6ec3


Replaced raw string value with a constant.

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


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

Branch: refs/heads/master
Commit: 2d83d6ec3a87ee438b8ee3e5cbd5059e4883fdea
Parents: 1f988a3
Author: Klaus Ma <klaus1982...@gmail.com>
Authored: Thu Aug 11 07:29:01 2016 +0100
Committer: Michael Park <mp...@apache.org>
Committed: Thu Aug 11 07:31:28 2016 +0100

----------------------------------------------------------------------
 src/slave/containerizer/fetcher.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/2d83d6ec/src/slave/containerizer/fetcher.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/fetcher.cpp 
b/src/slave/containerizer/fetcher.cpp
index 8545d98..4d3fc52 100644
--- a/src/slave/containerizer/fetcher.cpp
+++ b/src/slave/containerizer/fetcher.cpp
@@ -196,7 +196,8 @@ Result<string> Fetcher::uriToLocalPath(
     const string& uri,
     const Option<string>& frameworksHome)
 {
-  if (!strings::startsWith(uri, "file://") && strings::contains(uri, "://")) {
+  if (!strings::startsWith(uri, FILE_URI_PREFIX) &&
+      strings::contains(uri, "://")) {
     return None();
   }
 

Reply via email to