[
https://issues.apache.org/jira/browse/AIRFLOW-6650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024905#comment-17024905
]
Kamil Bregula commented on AIRFLOW-6650:
----------------------------------------
Does this problem occur in the master branch?
[https://airflow.readthedocs.io/en/latest/]
> Google Cloud Platform Connection key json documentation or code is wrong
> ------------------------------------------------------------------------
>
> Key: AIRFLOW-6650
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6650
> Project: Apache Airflow
> Issue Type: Bug
> Components: gcp
> Affects Versions: 1.10.4, 1.10.5, 1.10.6, 1.10.7
> Reporter: Evgeniy Sokolov
> Priority: Minor
>
> According to the documentation:
> [https://airflow.readthedocs.io/en/stable/howto/connection/gcp.html]
> The name of the external configuration for Keyfile JSON is:
> * {{extra__google_cloud_platform__key_dict}} - Keyfile JSON
> Excluding the prefix ({{extra__google_cloud_platform__) the name of the
> variable is *key_dict*.
> }}
> However, '*keyfile_dict*' is expected in the source code:
> [https://github.com/apache/airflow/blob/master/airflow/gcp/hooks/base.py]
> {code:java}
> 146: keyfile_dict = self._get_field('keyfile_dict', None) # type:
> Optional[str]{code}
> [https://github.com/apache/airflow/blob/v1-10-stable/airflow/contrib/hooks/gcp_api_base_hook.py]
> {code:java}
> 138: keyfile_dict = self._get_field('keyfile_dict', False){code}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)