Skip to content

Commit

Permalink
Fix issue in relocating products in S3 when using archive.rebuild_pro…
Browse files Browse the repository at this point in the history
…perties()
  • Loading branch information
svniemeijer committed Feb 14, 2024
1 parent 4926d85 commit d4236c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions muninn/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,8 @@ def _rebuild_properties(paths):
if not use_current_path and 'archive_path' in product.core:
new_archive_path, paths = self._relocate(product, properties, paths)
if new_archive_path is not None:
metadata = {'archive_path': new_archive_path}
self.update_properties(Struct({'core': metadata}), product.core.uuid)
properties.core.archive_path = new_archive_path

# if product type has disabled hashing, remove existing hash values
Expand Down

0 comments on commit d4236c9

Please sign in to comment.