You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2018/06/21 20:23:46 UTC

[2/2] mesos git commit: Improved the accuracy of a failure message in docker fetcher plugin.

Improved the accuracy of a failure message in docker fetcher plugin.

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


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

Branch: refs/heads/1.5.x
Commit: 42a2b15e42b30afa39447e30f4a3d64688f40556
Parents: 6772edb
Author: he yi hua <yh...@163.com>
Authored: Thu Jun 21 12:42:36 2018 -0700
Committer: Gilbert Song <so...@gmail.com>
Committed: Thu Jun 21 13:23:39 2018 -0700

----------------------------------------------------------------------
 src/uri/fetchers/docker.cpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/42a2b15e/src/uri/fetchers/docker.cpp
----------------------------------------------------------------------
diff --git a/src/uri/fetchers/docker.cpp b/src/uri/fetchers/docker.cpp
index 91db13b..daf7452 100644
--- a/src/uri/fetchers/docker.cpp
+++ b/src/uri/fetchers/docker.cpp
@@ -840,6 +840,11 @@ Future<http::Headers> DockerFetcherPluginProcess::getAuthHeader(
       });
   }
 
+  if (authScheme == "BASIC"){
+    return Failure(
+        "Unexpected BASIC Authorization response status: " + response.status);
+  }
+
   return Failure("Unsupported auth-scheme: " + authScheme);
 }