Fix downloading refs
@@ -2522,10 +2522,10 @@ class Artifact(object):
def download(root=None):
root = root or default_root
if entry.ref is not None:
- return storage_policy.load_reference(
+ cache_path = storage_policy.load_reference(
self, name, manifest.entries[name], local=True
)
-
+ else:
cache_path = storage_policy.load_file(
self, name, manifest.entries[name]
)
