Skip to content

Commit 4501f8b

Browse files
authored
Update gcp.rst (#32281)
got an "TypeError: __init__() got an unexpected keyword argument 'key_path'" error message when not wrapped in the "extra" object.
1 parent ba05a1e commit 4501f8b

File tree

1 file changed

+1
-1
lines changed
  • docs/apache-airflow-providers-google/connections

1 file changed

+1
-1
lines changed

docs/apache-airflow-providers-google/connections/gcp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Number of Retries
154154

155155
.. code-block:: bash
156156
157-
export AIRFLOW_CONN_GOOGLE_CLOUD_DEFAULT='{"conn_type": "google-cloud-platform", "key_path": "/keys/key.json", "scope": "https://www.googleapis.com/auth/cloud-platform", "project": "airflow", "num_retries": 5}'
157+
export AIRFLOW_CONN_GOOGLE_CLOUD_DEFAULT='{"conn_type": "google_cloud_platform", "extra": {"key_path": "/keys/key.json", "scope": "https://www.googleapis.com/auth/cloud-platform", "project": "airflow", "num_retries": 5}}'
158158
159159
.. _howto/connection:gcp:impersonation:
160160

0 commit comments

Comments
 (0)