Skip to content

Commit

Permalink
Fix explicit concat in kubernetes_engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-fell committed May 27, 2022
1 parent a1cf779 commit 1ca5992
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airflow/providers/google/cloud/hooks/kubernetes_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ def get_operation(self, operation_name: str, project_id: Optional[str] = None) -
:return: The new, updated operation from Google Cloud
"""
return self.get_cluster_manager_client().get_operation(
name=f'projects/{project_id or self.project_id}'
+ f'/locations/{self.location}/operations/{operation_name}'
name=(
f'projects/{project_id or self.project_id}'
f'/locations/{self.location}/operations/{operation_name}'
)
)

@staticmethod
Expand Down

0 comments on commit 1ca5992

Please sign in to comment.