From 3d7f39d3444be3117d0ddcf0a0ed7ae023917273 Mon Sep 17 00:00:00 2001 From: Zhongcheng Lao Date: Wed, 6 Mar 2024 17:00:36 +0800 Subject: [PATCH] Fixes the logon type to service login Change-Id: Ie53ce192eff2069769b6bb5b56fc9d5058ec8156 Signed-off-by: Zhongcheng Lao --- cloudbaseinit/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbaseinit/init.py b/cloudbaseinit/init.py index e2679c94..dfd2e9f1 100644 --- a/cloudbaseinit/init.py +++ b/cloudbaseinit/init.py @@ -159,7 +159,7 @@ class InitManager(object): LOG.info("Respawning current process with updated credentials.") token = osutils.create_user_logon_session( service_user, service_password, service_domain, - logon_type=osutils.LOGON32_LOGON_BATCH) + logon_type=osutils.LOGON32_LOGON_SERVICE) exit_code = osutils.execute_process_as_user(token, arguments) LOG.info("Process execution ended with exit code: %s", exit_code) sys.exit(exit_code)