From ced3c99895597fce94b82a1a03c07a78ef3b4483 Mon Sep 17 00:00:00 2001 From: Helin Guo Date: Mon, 13 Feb 2023 11:44:58 +0800 Subject: [PATCH] dragonball: config_manager: preserve device when update DeviceConfigInfo contains config and device, so when we want to do update we could simply update config part of the info, and device would not be changed during update. Fixes: #6324 Signed-off-by: Helin Guo --- src/dragonball/src/config_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dragonball/src/config_manager.rs b/src/dragonball/src/config_manager.rs index 34a2af2e0f..e1c89d2faa 100644 --- a/src/dragonball/src/config_manager.rs +++ b/src/dragonball/src/config_manager.rs @@ -231,7 +231,7 @@ where info.config.check_conflicts(config)?; } } - self.info_list[index] = device_info; + self.info_list[index].config = config.clone(); index } None => {