Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e32d4c5

Browse files
author
chenyumic
authored
1 parent 56a6b16 commit e32d4c5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

appengine/standard_python37/cloudsql/main_mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def main():
3131
# When deployed to App Engine, the `GAE_ENV` environment variable will be
3232
# set to `standard`
33-
if os.environ.get('GAE_ENV'):
33+
if os.environ.get('GAE_ENV') == 'standard':
3434
# If deployed, use the local socket interface for accessing Cloud SQL
3535
host = '/cloudsql/{}'.format(db_connection_name)
3636
else:

appengine/standard_python37/cloudsql/main_mysql_pooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# When deployed to App Engine, the `GAE_ENV` environment variable will be
2727
# set to `standard`
28-
if os.environ.get('GAE_ENV'):
28+
if os.environ.get('GAE_ENV') == 'standard':
2929
# If deployed, use the local socket interface for accessing Cloud SQL
3030
host = '/cloudsql/{}'.format(db_connection_name)
3131
else:

appengine/standard_python37/cloudsql/main_postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def main():
3131
# When deployed to App Engine, the `GAE_ENV` environment variable will be
3232
# set to `standard`
33-
if os.environ.get('GAE_ENV'):
33+
if os.environ.get('GAE_ENV') == 'standard':
3434
# If deployed, use the local socket interface for accessing Cloud SQL
3535
host = '/cloudsql/{}'.format(db_connection_name)
3636
else:

appengine/standard_python37/cloudsql/main_postgres_pooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# When deployed to App Engine, the `GAE_ENV` environment variable will be
2727
# set to `standard`
28-
if os.environ.get('GAE_ENV'):
28+
if os.environ.get('GAE_ENV') == 'standard':
2929
# If deployed, use the local socket interface for accessing Cloud SQL
3030
host = '/cloudsql/{}'.format(db_connection_name)
3131
else:

0 commit comments

Comments
 (0)