Skip to content

Commit

Permalink
Move setting of project ID after activating service account (#17866)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmytro Khimich <[email protected]>
  • Loading branch information
deedmitrij and Dmytro Khimich authored Aug 27, 2021
1 parent aa5952e commit 4990176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils/gcp_system_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ def provide_gcp_context(
):
executor = get_executor()

if project_id:
executor.execute_cmd(["gcloud", "config", "set", "core/project", project_id])
if key_file_path:
executor.execute_cmd(
[
Expand All @@ -110,6 +108,8 @@ def provide_gcp_context(
f"--key-file={key_file_path}",
]
)
if project_id:
executor.execute_cmd(["gcloud", "config", "set", "core/project", project_id])
yield


Expand Down

0 comments on commit 4990176

Please sign in to comment.