Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Merge a1fe13d into 6ff12dd
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Dec 8, 2017
2 parents 6ff12dd + a1fe13d commit 492e03b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions collectfast/etag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging

from django.core.cache import caches
from storages.utils import safe_join

from collectfast import settings

Expand Down Expand Up @@ -35,8 +36,8 @@ def get_remote_etag(storage, prefixed_path):
"""
Get etag of path from S3 using boto or boto3.
"""
normalized_path = storage._normalize_name(
prefixed_path).replace('\\', '/')
normalized_path = safe_join(storage.location, prefixed_path).replace(
'\\', '/')
try:
return storage.bucket.get_key(normalized_path).etag
except AttributeError:
Expand Down

0 comments on commit 492e03b

Please sign in to comment.