Skip to content

Commit

Permalink
Fix using private _get_credentials instead of public get_credentials (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zazaho authored Jan 11, 2023
1 parent 7d57f56 commit a337e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/providers/google/cloud/hooks/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def get_conn(self):

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(
Expand Down

0 comments on commit a337e62

Please sign in to comment.