Merge pull request #1539 from enkore/f/recreate-cp

recreate: fix crash if archive doesn't have chunker_params
This commit is contained in:
enkore 2016-08-27 14:06:32 +02:00 committed by GitHub
commit e60ed80433
1 changed files with 1 additions and 1 deletions

View File

@ -1572,7 +1572,7 @@ class ArchiveRecreater:
if not target: if not target:
target = self.create_target_archive(target_name) target = self.create_target_archive(target_name)
# If the archives use the same chunker params, then don't rechunkify # If the archives use the same chunker params, then don't rechunkify
target.recreate_rechunkify = tuple(archive.metadata.get('chunker_params')) != self.chunker_params target.recreate_rechunkify = tuple(archive.metadata.get('chunker_params', [])) != self.chunker_params
return target, resume_from return target, resume_from
def try_resume(self, archive, target_name): def try_resume(self, archive, target_name):