diff options
Diffstat (limited to 'kpov_judge/finalize_opstack.py')
-rw-r--r-- | kpov_judge/finalize_opstack.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kpov_judge/finalize_opstack.py b/kpov_judge/finalize_opstack.py index 7938bda..9f3d959 100644 --- a/kpov_judge/finalize_opstack.py +++ b/kpov_judge/finalize_opstack.py @@ -38,12 +38,7 @@ def get_quantum_client(tenant_name): kc = ksclient.Client(endpoint=settings.OS_ADMIN_AUTH_URL, token=settings.OS_ADMIN_TOKEN) member_role = kc.roles.find(name='Member') -db = pymongo.MongoClient(settings.DB_HOST).kpov -try: - db.authenticate(settings.USERNAME, settings.PASSWORD) -except Exception, e: - print str(e) - #no auth or auth config? +db = pymongo.MongoClient(settings.DB_URI).get_default_database() l = db.student_tasks.find({'create_openstack': True}) projects = list() |