Skip to content

Commit

Permalink
feat(providers/google): add default gcp_conn_id to GoogleBaseAsyncHook (
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W authored and fdemiane committed Jun 6, 2024
1 parent 8b0e0dd commit b25c1be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion airflow/providers/google/common/hooks/base_google.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,11 @@ class GoogleBaseAsyncHook(BaseHook):

sync_hook_class: Any = None

def __init__(self, **kwargs: Any):
def __init__(self, **kwargs: Any) -> None:
# add default value to gcp_conn_id
if "gcp_conn_id" not in kwargs:
kwargs["gcp_conn_id"] = "google_cloud_default"

self._hook_kwargs = kwargs
self._sync_hook = None

Expand Down

0 comments on commit b25c1be

Please sign in to comment.