From 56ac2458ad67c56a7203ad7e82352257819b4243 Mon Sep 17 00:00:00 2001 From: tierno Date: Tue, 17 Apr 2018 16:06:26 +0200 Subject: [PATCH] fixed database init version issue Change-Id: I058ac0c96fab1ac27fa7eedeffd7a7d984d1939b Signed-off-by: tierno --- osm_nbi/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.25.1