Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _get_webhook_endpoint(self, conn_id: str) -> str:
:return: Endpoint(str) for chime webhook.
"""
conn = self.get_connection(conn_id)
token = conn.get_password()
token = conn.password
if token is None:
raise AirflowException("Webhook token field is missing and is required.")
url = conn.schema + "://" + conn.host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, token: str = "", pagerduty_conn_id: str | None = None) -> Non

if pagerduty_conn_id is not None:
conn = self.get_connection(pagerduty_conn_id)
password = conn.get_password()
password = conn.password
if password is not None:
self.token = password

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(

if pagerduty_events_conn_id is not None:
conn = self.get_connection(pagerduty_events_conn_id)
password = conn.get_password()
password = conn.password
if password is not None:
self.integration_key = password

Expand Down