Skip to content

Commit

Permalink
fix: use package version for app version in openapi (#1170)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <[email protected]>
  • Loading branch information
Alex-Izquierdo authored Dec 19, 2024
1 parent 04c71ee commit 20d22f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aap_eda/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
from django.core.exceptions import ImproperlyConfigured
from split_settings.tools import include

from aap_eda import utils
from aap_eda.core.enums import RulebookProcessLogLevel
from aap_eda.utils import str_to_bool

default_settings_file = "/etc/eda/settings.yaml"

Expand Down Expand Up @@ -139,7 +139,7 @@ def _get_secret_key() -> str:
def _get_boolean(name: str, default=False) -> bool:
value = settings.get(name, default)
if isinstance(value, str):
value = str_to_bool(value)
value = utils.str_to_bool(value)
if not isinstance(value, bool):
raise ImproperlyConfigured("{name} setting must be a boolean value.")
return value
Expand Down Expand Up @@ -555,7 +555,7 @@ def get_rq_queues() -> dict:

SPECTACULAR_SETTINGS = {
"TITLE": "Event Driven Ansible API",
"VERSION": "1.0.0",
"VERSION": utils.get_eda_version(),
"SERVE_INCLUDE_SCHEMA": False,
"SCHEMA_PATH_PREFIX": f"/{API_PREFIX}/v[0-9]",
"SCHEMA_PATH_PREFIX_TRIM": True,
Expand Down

0 comments on commit 20d22f9

Please sign in to comment.