Skip to content

Commit bb8f7bd

Browse files
authored
Merge pull request #44 from aws/fix-image-uri
Update test_models_from_hub.py
2 parents 0c92a5d + 7a4e0ac commit bb8f7bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integ/test_models_from_hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def get_all_ecr_images(registry_id, repository_name, result_key):
3838
image_tags = [image["imageTag"] for image in images]
3939
print(image_tags)
4040
image_regex = re.compile("\d\.\d\.\d-" + device + "-.{4}$")
41-
image = sorted(list(filter(image_regex.match, image_tags)), reverse=True)[0]
42-
return image
41+
tag = sorted(list(filter(image_regex.match, image_tags)), reverse=True)[0]
42+
return f"{registry_id}.dkr.ecr.{os.environ.get('AWS_DEFAULT_REGION','us-east-1')}.amazonaws.com/{repository_name}:{tag}"
4343

4444

4545
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)