Skip to content

Commit

Permalink
Fix GCP service connector login to overwrite existing valid credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Feb 5, 2024
1 parent ea3b194 commit e9f01aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/zenml/cli/service_connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,10 +1772,11 @@ def login_service_connector(
"""
client = Client()

with console.status(
"Attempting to configure local client using service connector "
f"'{name_id_or_prefix}'...\n"
):
# with console.status(
# "Attempting to configure local client using service connector "
# f"'{name_id_or_prefix}'...\n"
# ):
if True:
try:
connector = client.login_service_connector(
name_id_or_prefix=name_id_or_prefix,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ def _configure_local_client(
"gcloud",
"auth",
"login",
"--quiet",
"--cred-file",
adc_path,
],
Expand Down

0 comments on commit e9f01aa

Please sign in to comment.