Skip to content

Commit f2a5b1d

Browse files
authored
feat(providers/google): add default gcp_conn_id to GoogleBaseAsyncHook (#40080)
1 parent fe91596 commit f2a5b1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

airflow/providers/google/common/hooks/base_google.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,11 @@ class GoogleBaseAsyncHook(BaseHook):
731731

732732
sync_hook_class: Any = None
733733

734-
def __init__(self, **kwargs: Any):
734+
def __init__(self, **kwargs: Any) -> None:
735+
# add default value to gcp_conn_id
736+
if "gcp_conn_id" not in kwargs:
737+
kwargs["gcp_conn_id"] = "google_cloud_default"
738+
735739
self._hook_kwargs = kwargs
736740
self._sync_hook = None
737741

0 commit comments

Comments
 (0)