Skip to content

Commit

Permalink
Merge pull request #170 from nkubala/environment_fix
Browse files Browse the repository at this point in the history
return string instead of bool in integration test sample app env handler
  • Loading branch information
nkubala authored Nov 15, 2017
2 parents 4a50266 + 714dcb7 commit b759359
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,11 @@ def _check_environment():
# for GAE, we'll check the existence env vars set on
# vm:true or env:flex
# if neither exist, assume we're in GKE
return (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
_APPENGINE_FLEXIBLE_ENV_FLEX in os.environ), 200
environment = "GKE"
if (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
_APPENGINE_FLEXIBLE_ENV_FLEX in os.environ):
environment = "GAE"
return environment, 200


class ErrorResponse(Exception):
Expand Down

0 comments on commit b759359

Please sign in to comment.