Skip to content

Commit

Permalink
Fix adding necessary args and cluster credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
PBundyra committed Oct 15, 2024
1 parent 42f92f9 commit aff257b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/xpk/commands/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ def workload_create(args) -> None:
Returns:
0 if successful and 1 otherwise.
"""
add_zone_and_project(args)
get_cluster_credentials(args)

if args.headless and not is_cluster_using_clouddns(args):
xpk_print(
'Please run xpk cluster create-pathways first, to upgrade and enable'
Expand Down
2 changes: 1 addition & 1 deletion src/xpk/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def add_zone_and_project(args):
args.project = get_project()
if not args.zone:
args.zone = get_zone()
xpk_print(f'Working on {args.project=} and {args.zone}')
xpk_print(f'Working on {args.project} and {args.zone}')


def parse_env_config(args, tensorboard_config, system: SystemCharacteristics):
Expand Down

0 comments on commit aff257b

Please sign in to comment.