Skip to content

Commit d98de56

Browse files
Fix OS environ variable (GoogleCloudPlatform#7862)
1 parent b018305 commit d98de56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine/flexible/multiple_services/gateway-service/services_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def map_services(environment):
4444

4545
def production_url(service_name):
4646
"""Generates url for a service when deployed to App Engine."""
47-
project_id = os.environ.get('GAE_LONG_APP_ID')
47+
project_id = os.getenv('GOOGLE_CLOUD_PROJECT')
4848
project_url = '{}.appspot.com'.format(project_id)
4949
if service_name == 'default':
5050
return 'https://{}'.format(project_url)

0 commit comments

Comments
 (0)