diff options
Diffstat (limited to 'tests/testutils/artifactshare.py')
-rw-r--r-- | tests/testutils/artifactshare.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py index 02f76de90..91dcb9bdb 100644 --- a/tests/testutils/artifactshare.py +++ b/tests/testutils/artifactshare.py @@ -114,7 +114,7 @@ class ArtifactShare(): # cache_key (str): The cache key # # Returns: - # (bool): True if the artifact exists in the share, otherwise false. + # (str): artifact digest if the artifact exists in the share, otherwise None. def has_artifact(self, project_name, element_name, cache_key): # NOTE: This should be kept in line with our @@ -134,9 +134,9 @@ class ArtifactShare(): try: tree = self.cas.resolve_ref(artifact_key) - return True + return tree except CASError: - return False + return None # close(): # |