Skip to content

Commit

Permalink
updating links and service account message (kubeflow#3044)
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaChavoshi authored and Jeffwan committed Dec 9, 2020
1 parent 641fcc7 commit e33c21d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/diagnostics/diagnose_me/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run_diagnose_me(
auth_project_id = project_config.parsed_output['core']['project']
print('GCP credentials are configured with access to project: %s ...\n' % (project_id))
print('Following account(s) are active under this pipeline:\n')
subprocess.run(['gcloud', 'auth', 'list'])
subprocess.run(['gcloud', 'auth', 'list','--format','json'])
print('\n')
else:
print(
Expand Down Expand Up @@ -133,7 +133,7 @@ def run_diagnose_me(
api_check_results = False
print(
'API \"%s\" is not accessible or not enabled. To enable this api go to ' % (api) +
'https://pantheon.corp.google.com/apis/library/%s?project=%s' %
'https://console.cloud.google.com/apis/library/%s?project=%s' %
(api, project_id),file=sys.stderr)
config_error_observed = True

Expand All @@ -159,4 +159,4 @@ def run_diagnose_me(
run_diagnose_me,
base_image='google/cloud-sdk:276.0.0',
output_component_file='component.yaml',
)
)
4 changes: 2 additions & 2 deletions components/diagnostics/diagnose_me/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ implementation:
auth_project_id = project_config.parsed_output['core']['project']
print('GCP credentials are configured with access to project: %s ...\n' % (project_id))
print('Following account(s) are active under this pipeline:\n')
subprocess.run(['gcloud', 'auth', 'list'])
subprocess.run(['gcloud', 'auth', 'list','--format','json'])
print('\n')
else:
print(
Expand Down Expand Up @@ -129,7 +129,7 @@ implementation:
api_check_results = False
print(
'API \"%s\" is not accessible or not enabled. To enable this api go to ' % (api) +
'https://pantheon.corp.google.com/apis/library/%s?project=%s' %
'https://console.cloud.google.com/apis/library/%s?project=%s' %
(api, project_id),file=sys.stderr)
config_error_observed = True
Expand Down

0 comments on commit e33c21d

Please sign in to comment.