From: Eduardo Sousa Date: Tue, 28 May 2019 13:02:59 +0000 (+0100) Subject: Fixing admin user and project creation X-Git-Tag: v6.0.0~35 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c5b30ccbda826045bc23fe261e73333c0e735890;p=osm%2FNBI.git 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 --- 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