dvc: cloud: cache_file_key: don't forget to assign to relpath

Fixes #608

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-04-03 21:18:14 +03:00
parent c2574eecb0
commit 6f0dcf617f
+1 -1
View File
@@ -75,7 +75,7 @@ class DataCloudBase(object):
def cache_file_key(self, fname):
""" Key of a file within the bucket """
relpath = os.path.relpath(fname, self._cloud_settings.cache.cache_dir)
relpath.replace('\\', '/')
relpath = relpath.replace('\\', '/')
return '{}/{}'.format(self.storage_prefix, relpath).strip('/')
@staticmethod