Skip to content

Commit

Permalink
handle empty env vars properly
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Gebhardt <[email protected]>
  • Loading branch information
gebhardtr committed Mar 27, 2024
1 parent 317e613 commit b91d8ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ansible_wisdom/main/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
ANSIBLE_AI_PROJECT_NAME = os.getenv("ANSIBLE_AI_PROJECT_NAME", "Ansible AI Connect")
ANSIBLE_AI_PROJECT_NAME = os.getenv("ANSIBLE_AI_PROJECT_NAME") or "Ansible AI Connect"

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
Expand Down
1 change: 0 additions & 1 deletion tools/docker-compose/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ services:
- "8000"
- "8001-8011" # django-prometheus
environment:
- ANSIBLE_AI_PROJECT_NAME="Ansible AI Connect"
- DJANGO_SETTINGS_MODULE=ansible_wisdom.main.settings.development
- DJANGO_LOG_LEVEL=${DJANGO_LOG_LEVEL}
- ANSIBLE_AI_DATABASE_NAME=wisdom
Expand Down

0 comments on commit b91d8ab

Please sign in to comment.