Commit 543b9f88 authored by Craig Citro's avatar Craig Citro Committed by TensorFlower Gardener
Browse files

Be more strict about values that skip the GCE credential checks.

In commit a252fe83, I added support for a
`$NO_GCE_CHECK` environment variable whose presence would skip attempting to
use GCE credentials. Part of the motivation was symmetry with other Google
auth libraries, such as the Java client and Python's oauth2client.

However, both of those libraries are more precise about the values: they only
skip the GCE check if `$NO_GCE_CHECK` is set to `true` (case insensitive in
Java, and specifically `True` in Python).

This change just refines the checking to do a case-insensitive check for
`true`, bringing its behavior into line with the existing implementations. (I
also updated the test.)

PiperOrigin-RevId: 232965965
parent b63e4169
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment