Sfoglia il codice sorgente

remove temporary hack for db_session.EngineFacade

there was an issue connecting to the database at some point. This
no longer seems to be an issue. Removing workaround.
Gabriel Adrian Samfira 9 anni fa
parent
commit
343eba7c96
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      coriolis/db/sqlalchemy/api.py

+ 1 - 5
coriolis/db/sqlalchemy/api.py

@@ -20,11 +20,7 @@ _facade = None
 def get_facade():
     global _facade
     if not _facade:
-        # TODO: investigate why the CONF.database.connection is None!
-        # _facade = db_session.EngineFacade(CONF.database.connection)
-        # _facade = db_session.EngineFacade.from_config(CONF)
-        _facade = db_session.EngineFacade(
-            "mysql://coriolis:Passw0rd@localhost/coriolis")
+        _facade = db_session.EngineFacade(CONF.database.connection)
     return _facade