Skip to content

Commit f7c58a1

Browse files
committed
friendly name for short uri fix
1 parent 67b75b7 commit f7c58a1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sagemaker/lineage/visualizer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"""This module contains functionality to display lineage data."""
1414
from __future__ import absolute_import
1515
import logging
16-
import os
17-
from urllib.parse import urlparse
1816
import pandas as pd
1917

2018
from sagemaker.lineage.association import Association
@@ -291,9 +289,6 @@ def _get_friendly_name(self, name, arn, entity_type):
291289
if entity_type == "artifact":
292290
artifact = self._session.sagemaker_client.describe_artifact(ArtifactArn=arn)
293291
uri = artifact["Source"]["SourceUri"]
294-
# try to get file name from url
295-
uri_parsed = urlparse(uri)
296-
name = os.path.basename(uri_parsed.path)
297292

298293
# shorten the uri if the length is more than 40,
299294
# e.g s3://flintstone-end-to-end-tests-gamma-us-west-2-069083975568/results/

0 commit comments

Comments
 (0)