Skip to content

Commit 4c8770f

Browse files
committed
Allow cloudbase-init reboot and fix extraction when local scripts exist
1 parent 16895aa commit 4c8770f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

coriolis/osmorphing/windows.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ def _expand_archive(self, path, destination, overwrite=True):
301301
else:
302302
self._conn.exec_ps_command(
303303
"rm -recurse -force %s" % destination)
304-
else:
305-
LOG.info("Skipping extraction as destination exists")
306-
return
307304

308305
self._conn.exec_ps_command(
309306
"if(([System.Management.Automation.PSTypeName]"
@@ -517,7 +514,7 @@ def _write_cloudbase_init_conf(self, cloudbaseinit_base_dir,
517514
"logfile = cloudbase-init.log\r\n"
518515
"default_log_levels = \r\n"
519516
"comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN\r\n"
520-
"allow_reboot = false\r\n"
517+
"allow_reboot = true\r\n"
521518
"plugins = %(plugins)s\r\n"
522519
"debug = true\r\n"
523520
"san_policy = OnlineAll\r\n"

0 commit comments

Comments
 (0)