From b4e92ba66df328e85b10bcf6e3d27321a4e87830 Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Tue, 9 Dec 2025 16:19:04 +0000 Subject: [PATCH] Avoids re-extracting `cloudbase-init` if the destination directory is already present Signed-off-by: Mihaela Balutoiu --- coriolis/osmorphing/windows.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coriolis/osmorphing/windows.py b/coriolis/osmorphing/windows.py index eb7d9d37..263f6fe3 100644 --- a/coriolis/osmorphing/windows.py +++ b/coriolis/osmorphing/windows.py @@ -266,6 +266,10 @@ def _expand_archive(self, path, destination, overwrite=True): else: self._conn.exec_ps_command( "rm -recurse -force %s" % destination) + else: + LOG.info("Skipping extraction as destination exists") + return + self._conn.exec_ps_command( "if(([System.Management.Automation.PSTypeName]" "'System.IO.Compression.ZipFile').Type -or "