From 776d821d0b18109ade10621aa19e1ba6a08e793e Mon Sep 17 00:00:00 2001 From: "Zhidong Peng (HE/HIM)" Date: Wed, 7 Oct 2026 14:24:18 -0700 Subject: [PATCH] soft audit mode suppressed the provision failure message --- proxy_agent/src/provision.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/proxy_agent/src/provision.rs b/proxy_agent/src/provision.rs index 7121ea9e..316cfe11 100644 --- a/proxy_agent/src/provision.rs +++ b/proxy_agent/src/provision.rs @@ -440,7 +440,8 @@ pub async fn start_event_threads(event_threads_shared_state: EventThreadsSharedS /// if status.tag file exists, it means provision finished /// if status.tag file does not exist, it means provision still in progress /// the content of the status.tag file is the provision error message, -/// empty means provision success, otherwise provision failed with error message +/// empty means provision success or soft audit mode suppressed the failure, +/// otherwise provision failed with error message async fn write_provision_state( provision_dir: Option, provision_shared_state: ProvisionSharedState, @@ -533,6 +534,16 @@ async fn get_provision_failed_state_message( provision_shared_state: ProvisionSharedState, agent_status_shared_state: AgentStatusSharedState, ) -> String { + match agent_status_shared_state.get_soft_audit_mode().await { + Ok(true) => return String::new(), + Ok(false) => {} + Err(e) => { + logger::write_warning(format!( + "Failed to get soft audit mode while building provision status: {e}" + )); + } + } + let provision_state = match provision_shared_state.get_state().await { Ok(state) => state, Err(e) => {