File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/sagemaker/jumpstart/curated_hub
tests/unit/sagemaker/jumpstart/curated_hub Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -238,9 +238,9 @@ def _convert_to_tag_to_versions_map(
238
238
for version , tags in version_to_tags_map .items ():
239
239
for tag in tags :
240
240
if tag not in unsupported_hub_content_versions_map :
241
- unsupported_hub_content_versions_map [tag ] = []
241
+ unsupported_hub_content_versions_map [tag . value ] = []
242
242
# Versions for a HubContent are unique
243
- unsupported_hub_content_versions_map [tag ].append (version )
243
+ unsupported_hub_content_versions_map [tag . value ].append (version )
244
244
245
245
return unsupported_hub_content_versions_map
246
246
Original file line number Diff line number Diff line change @@ -325,15 +325,15 @@ def test_find_all_tags_for_jumpstart_model_filters_non_jumpstart_models(mock_spe
325
325
326
326
assert tags == [
327
327
{
328
- "Key" : CuratedHubUnsupportedFlag . DEPRECATED_VERSIONS . value ,
328
+ "Key" : "deprecated_versions" ,
329
329
"Value" : str (["1.0.0" , "2.0.0" ]),
330
330
},
331
331
{
332
- "Key" : CuratedHubUnsupportedFlag . INFERENCE_VULNERABLE_VERSIONS . value ,
332
+ "Key" : "inference_vulnerable_versions" ,
333
333
"Value" : str (["1.0.0" , "2.0.0" ]),
334
334
},
335
335
{
336
- "Key" : CuratedHubUnsupportedFlag . TRAINING_VULNERABLE_VERSIONS . value ,
336
+ "Key" : "training_vulnerable_versions" ,
337
337
"Value" : str (["1.0.0" , "2.0.0" ]),
338
338
},
339
339
]
You can’t perform that action at this time.
0 commit comments