Skip to content

Commit 12730ca

Browse files
authored
Fix list_pods and AZ_ID error message (#238)
Tested locally by running the commands and saw exptected results
1 parent 3ad70ec commit 12730ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sagemaker/hyperpod/cli/init_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def add_default_az_ids_to_config(dir_path: str, region: str):
517517
az_ids = all_az_ids[:2]
518518

519519
update_list_field_in_config(dir_path, 'availability_zone_ids', az_ids)
520-
click.secho(f"No availability_zone_ids provided. Using default AZ Id: az_ids.", fg="yellow")
520+
click.secho(f"No availability_zone_ids provided. Using default AZ Id: {az_ids}.", fg="yellow")
521521
except Exception as e:
522522
raise Exception(f"Failed to find default availability_zone_ids for region {region}. Please provide one in config.yaml. Error details: {e}")
523523

src/sagemaker/hyperpod/inference/hp_jumpstart_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def list_pods(cls, namespace=None, endpoint_name=None):
264264
endpoints.add(endpoint_name)
265265
else:
266266
list_response = cls.call_list_api(
267-
kind=INFERENCE_ENDPOINT_CONFIG_KIND,
267+
kind=JUMPSTART_MODEL_KIND,
268268
namespace=namespace,
269269
)
270270
if list_response and list_response["items"]:

0 commit comments

Comments
 (0)