-
-
Save alistairncoles/62b0e7f39fa96af2e7c0e7723591fb16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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