mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
gerrit_util: Always use SSO in Cog
Bug: 396027841 Change-Id: I0e4f8442b0b630afaf1b716115007af3cbf6ee38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6306288 Commit-Queue: Allen Li <ayatane@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
This commit is contained in:
@@ -190,6 +190,9 @@ def ShouldUseSSO(host: str, email: str) -> bool:
|
||||
if not ssoHelper.find_cmd():
|
||||
LOGGER.debug("SSO=False: no SSO command")
|
||||
return False
|
||||
if gclient_utils.IsEnvCog():
|
||||
LOGGER.debug("SSO=True: in Cog")
|
||||
return True
|
||||
if not email:
|
||||
LOGGER.debug(
|
||||
"SSO=True: email is empty or missing (and SSO command available)")
|
||||
|
||||
Reference in New Issue
Block a user