Skip to content

Instantly share code, notes, and snippets.

@alistairncoles
Created July 26, 2017 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alistairncoles/62b0e7f39fa96af2e7c0e7723591fb16 to your computer and use it in GitHub Desktop.
Save alistairncoles/62b0e7f39fa96af2e7c0e7723591fb16 to your computer and use it in GitHub Desktop.
diff --git a/swiftclient/service.py b/swiftclient/service.py
index 5f032be..c9768c5 100644
--- a/swiftclient/service.py
+++ b/swiftclient/service.py
@@ -1876,8 +1876,8 @@ class SwiftService(object):
chunk_data = self._get_chunk_data(
conn, container, obj, headers)
- if options['skip_identical'] and self._is_identical(
- chunk_data, path):
+ if (path is not None and options['skip_identical'] and
+ self._is_identical(chunk_data, path)):
res.update({
'success': True,
'status': 'skipped-identical'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment