Removes try except block from creation of database tables 68/7168/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Thu, 3 Jan 2019 02:13:32 +0000 (23:13 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Fri, 1 Feb 2019 12:46:33 +0000 (09:46 -0300)
commitb77fe26906b4acdf5f2b110f07433382520f44ff
tree6f4874f865f04b217232c3e2857bdba7c1071018
parentc15e564b6fa2b11cc2db0c710c985fb46e0bdad6
Removes try except block from creation of database tables

In case there is an error connecting to the database engine, or the database
is not yet created, POL should fail. This is specially relevant to avoid race
conditions in Docker and K8s deployments using MySQL/MariaDB, because peewee
needs the database to already exist.

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