Skip to content

Commit ad35dd5

Browse files
committed
fix: refresh files when nested artifact is unpacked
1 parent e812bf7 commit ad35dd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/gardenlinux/oci/container.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ def push_manifest_and_artifacts_from_directory(
454454
if file_path_name.match("*.pxe.tar.gz"):
455455
self._logger.info(f"Found nested artifact {file_path_name}")
456456
extract_targz(file_path_name, artifacts_dir)
457+
files = [
458+
file_name
459+
for file_name in artifacts_dir.iterdir()
460+
if file_name.is_file()
461+
]
457462

458463
artifacts_with_metadata = Container.get_artifacts_metadata_from_files(
459464
files, manifest.arch

0 commit comments

Comments
 (0)