From: tierno Date: Tue, 17 Apr 2018 14:06:26 +0000 (+0200) Subject: fixed database init version issue X-Git-Tag: v4.0.0~17 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=56ac2458ad67c56a7203ad7e82352257819b4243;p=osm%2FNBI.git fixed database init version issue Change-Id: I058ac0c96fab1ac27fa7eedeffd7a7d984d1939b Signed-off-by: tierno --- diff --git a/osm_nbi/engine.py b/osm_nbi/engine.py index f8c7404..e7bf7c9 100644 --- a/osm_nbi/engine.py +++ b/osm_nbi/engine.py @@ -755,7 +755,7 @@ class Engine(object): If empty, it creates a new user admin/admin at 'users' and a new entry at 'version' :return: None if ok, exception if error or if the version is different. """ - version = self.db.get_one("versions", fail_on_empty=False, fail_on_more=False) + version = self.db.get_one("version", fail_on_empty=False, fail_on_more=False) if not version: # create user admin self.create_admin()