Skip to content

Commit

Permalink
fixing startup dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Feb 12, 2024
1 parent f6fd83d commit 4947739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansible-webui/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from aw.utils.deployment import deployment_prod
from aw.config.hardcoded import FILE_TIME_FORMAT
from aw.config.environment import check_aw_env_var_true, get_aw_env_var, check_aw_env_var_is_set
from aw.base import USERS

DB_BACKUP_EXT = '.auto.bak'
DB_BACKUP_RETENTION_DAYS = 7
Expand Down Expand Up @@ -101,6 +100,7 @@ def _make_migrations() -> bool:

def create_first_superuser():
# pylint: disable=C0415
from aw.base import USERS
if len(USERS.objects.filter(is_superuser=True)) == 0:
name = get_aw_env_var('init_admin')
pwd = get_aw_env_var('init_admin_pwd')
Expand Down

0 comments on commit 4947739

Please sign in to comment.