uranusjr commented on code in PR #26246:
URL: https://github.com/apache/airflow/pull/26246#discussion_r968203160
##########
airflow/providers/trino/hooks/trino.py:
##########
@@ -99,12 +99,19 @@ def get_conn(self) -> Connection:
extra = db.extra_dejson
auth = None
user = db.login
- if db.password and extra.get('auth') == 'kerberos':
- raise AirflowException("Kerberos authorization doesn't support
password.")
+ if db.password and extra.get('auth') in ('kerberos', 'certs'):
+ raise AirflowException(
+ "The '{}' authorization type doesn't support
password.".format(extra.get('auth'))
+ )
Review Comment:
```suggestion
raise AirflowException(
f"The {extra.get('auth')!r} authorization type doesn't
support password."
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]