You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/01/11 18:58:48 UTC

[airflow] branch main updated: Fix using private _get_credentials instead of public get_credentials (#28588)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new a337e6209a Fix using private _get_credentials instead of public get_credentials (#28588)
a337e6209a is described below

commit a337e6209ad1ded42db3f1d788c3f4df4f1d645a
Author: Sacha <sa...@gmail.com>
AuthorDate: Wed Jan 11 19:58:40 2023 +0100

    Fix using private _get_credentials instead of public get_credentials (#28588)
---
 airflow/providers/google/cloud/hooks/compute.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/airflow/providers/google/cloud/hooks/compute.py b/airflow/providers/google/cloud/hooks/compute.py
index 7bc9d33e7c..ede3adbd7c 100644
--- a/airflow/providers/google/cloud/hooks/compute.py
+++ b/airflow/providers/google/cloud/hooks/compute.py
@@ -80,15 +80,15 @@ class ComputeEngineHook(GoogleBaseHook):
 
     def get_compute_instance_template_client(self):
         """Returns Compute Engine Instance Template Client."""
-        return InstanceTemplatesClient(credentials=self._get_credentials(), client_info=self.client_info)
+        return InstanceTemplatesClient(credentials=self.get_credentials(), client_info=self.client_info)
 
     def get_compute_instance_client(self):
         """Returns Compute Engine Instance Client."""
-        return InstancesClient(credentials=self._get_credentials(), client_info=self.client_info)
+        return InstancesClient(credentials=self.get_credentials(), client_info=self.client_info)
 
     def get_compute_instance_group_managers_client(self):
         """Returns Compute Engine Instance Group Managers Client."""
-        return InstanceGroupManagersClient(credentials=self._get_credentials(), client_info=self.client_info)
+        return InstanceGroupManagersClient(credentials=self.get_credentials(), client_info=self.client_info)
 
     @GoogleBaseHook.fallback_to_default_project_id
     def insert_instance_template(