From c5b30ccbda826045bc23fe261e73333c0e735890 Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Tue, 28 May 2019 14:02:59 +0100 Subject: [PATCH] Fixing admin user and project creation Admin user and project should only be created when internal is being used. Change-Id: Id91ff04585a188b6a19c1b450bedae748009dc55 Signed-off-by: Eduardo Sousa --- osm_nbi/engine.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osm_nbi/engine.py b/osm_nbi/engine.py index e7dee84..2bf6169 100644 --- a/osm_nbi/engine.py +++ b/osm_nbi/engine.py @@ -388,5 +388,7 @@ class Engine(object): self.upgrade_db(db_version, target_version) # create user admin if not exist - self.create_admin() + if not self.auth: + self.create_admin() + return -- 2.25.1