Adds use of OSMPOL_SQL_DATABASE_URI config param to connect to DB 54/6654/4
authorBenjamin Diaz <bdiaz@whitestack.com>
Mon, 8 Oct 2018 19:34:17 +0000 (16:34 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Sun, 14 Oct 2018 21:38:20 +0000 (18:38 -0300)
commita4e615d9bab28eefa0ae1e713ad75289ed2f65cc
treef100dd5c7968ab31d8b702ef62cab60ddf1cefd9
parentf35f914f45080e150cc7c6a2928de47a9ae5c848
Adds use of OSMPOL_SQL_DATABASE_URI config param to connect to DB

The OSMPOL_SQL_DATABASE_URI was not being used by POL to connect
to the database. There was a hardcoded sqlite database name.
This change should now provide capability to the user to use any
SQL database engine supported by the peewee ORM (mysql/mariadb,
postgres, sqlite).

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Iff406862fb3dfeb4453fb3213c94db6d62385d96
docker/Dockerfile
osm_policy_module/core/config.py
osm_policy_module/core/database.py