Jelajahi Sumber

Disable `overwrite` flag when extracting `cloudbase-init`
archive to prevent overwriting `local scripts` that
were written before the installation.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>

Mihaela Balutoiu 5 bulan lalu
induk
melakukan
3a1822913a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      coriolis/osmorphing/windows.py

+ 1 - 1
coriolis/osmorphing/windows.py

@@ -512,7 +512,7 @@ class BaseWindowsMorphingTools(base.BaseOSMorphingTools):
 
             self._event_manager.progress_update("Installing cloudbase-init")
             self._expand_archive(cloudbaseinit_zip_path,
-                                 cloudbaseinit_base_dir)
+                                 cloudbaseinit_base_dir, overwrite=False)
 
             log_dir = "%s\\Log" % cloudbaseinit_base_dir
             self._conn.exec_ps_command("mkdir '%s' -Force" % log_dir,