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>
changes/88/6306288/3
Allen Li 23 hours ago committed by LUCI CQ
parent 3a5e3144af
commit 4ac4d26e80

@ -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)")

Loading…
Cancel
Save