Merge pull request #3395 from quay/joseph.schorr/QUAY-1385/remove-superuser-req

Remove requirement for superuser when loading existing config
This commit is contained in:
Joseph Schorr 2019-03-04 13:53:56 -05:00 committed by GitHub
commit 393b5dff9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,10 @@ class SuperUserRegistryStatus(ApiResource):
'status': 'setup-db'
}
config = config_provider.get_config()
if config and config['SETUP_COMPLETE']:
return 'config'
return {
'status': 'create-superuser' if not database_has_users() else 'config'
}