Skip to content

Commit

Permalink
ensure RulebookProcessLogLevel type
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <aizquier@redhat.com>
  • Loading branch information
Alex-Izquierdo committed Feb 21, 2024
1 parent d377ed6 commit 9706898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aap_eda/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def _get_secret_key() -> str:
def get_rulebook_process_log_level() -> RulebookProcessLogLevel:
log_level = settings.get(
"ANSIBLE_RULEBOOK_LOG_LEVEL",
RulebookProcessLogLevel.ERROR,
"error",
)
if log_level is None:
return RulebookProcessLogLevel.ERROR
Expand All @@ -471,7 +471,7 @@ def get_rulebook_process_log_level() -> RulebookProcessLogLevel:
f"Invalid log level '{log_level}' for ANSIBLE_RULEBOOK_LOG_LEVEL"
f" setting. Valid values are: {RulebookProcessLogLevel.values()}"
)
return log_level
return RulebookProcessLogLevel(log_level)


ANSIBLE_RULEBOOK_LOG_LEVEL = get_rulebook_process_log_level()
Expand Down

0 comments on commit 9706898

Please sign in to comment.