diff --git a/dev/breeze/src/airflow_breeze/params/shell_params.py b/dev/breeze/src/airflow_breeze/params/shell_params.py index de903ec99e0ad..0c6026437517c 100644 --- a/dev/breeze/src/airflow_breeze/params/shell_params.py +++ b/dev/breeze/src/airflow_breeze/params/shell_params.py @@ -671,7 +671,8 @@ def __post_init__(self): if ( self.backend and self.integration - and not (self.backend == POSTGRES_BACKEND and KEYCLOAK_INTEGRATION in self.integration) + and KEYCLOAK_INTEGRATION in self.integration + and not self.backend == POSTGRES_BACKEND ): get_console().print( "[error]When using the Keycloak integration the backend must be Postgres![/]\n"