We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a50266 + 714dcb7 commit b759359Copy full SHA for b759359
tests/integration/server.py
@@ -245,8 +245,11 @@ def _check_environment():
245
# for GAE, we'll check the existence env vars set on
246
# vm:true or env:flex
247
# if neither exist, assume we're in GKE
248
- return (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
249
- _APPENGINE_FLEXIBLE_ENV_FLEX in os.environ), 200
+ environment = "GKE"
+ if (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
250
+ _APPENGINE_FLEXIBLE_ENV_FLEX in os.environ):
251
+ environment = "GAE"
252
+ return environment, 200
253
254
255
class ErrorResponse(Exception):
0 commit comments