Show More
@@ -30,6 +30,10 b' from . import test_db' | |||||
30 | conn_kwargs = {} |
|
30 | conn_kwargs = {} | |
31 | if 'DB_IP' in os.environ: |
|
31 | if 'DB_IP' in os.environ: | |
32 | conn_kwargs['host'] = os.environ['DB_IP'] |
|
32 | conn_kwargs['host'] = os.environ['DB_IP'] | |
|
33 | if 'DBA_MONGODB_ADMIN_URI' in os.environ: | |||
|
34 | # On ShiningPanda, we need a username and password to connect. They are | |||
|
35 | # passed in a mongodb:// URI. | |||
|
36 | conn_kwargs['host'] = os.environ['DBA_MONGODB_ADMIN_URI'] | |||
33 | if 'DB_PORT' in os.environ: |
|
37 | if 'DB_PORT' in os.environ: | |
34 | conn_kwargs['port'] = int(os.environ['DB_PORT']) |
|
38 | conn_kwargs['port'] = int(os.environ['DB_PORT']) | |
35 |
|
39 |
General Comments 0
You need to be logged in to leave comments.
Login now