From 6f0dcf617f04c0de08856bad5fc89dc59ee5991e Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 3 Apr 2018 21:12:37 +0300 Subject: [PATCH] dvc: cloud: cache_file_key: don't forget to assign to relpath Fixes #608 Signed-off-by: Ruslan Kuprieiev --- dvc/cloud/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/cloud/base.py b/dvc/cloud/base.py index 9e983753d..3a23a23e6 100644 --- a/dvc/cloud/base.py +++ b/dvc/cloud/base.py @@ -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