From d4236c98dedb032055c530e6583cdc65d8a296c1 Mon Sep 17 00:00:00 2001 From: Sander Niemeijer Date: Wed, 14 Feb 2024 13:59:47 +0100 Subject: [PATCH] Fix issue in relocating products in S3 when using archive.rebuild_properties() --- muninn/archive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/muninn/archive.py b/muninn/archive.py index fafc5ee..115a419 100644 --- a/muninn/archive.py +++ b/muninn/archive.py @@ -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