1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-21 17:34:31 +00:00

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: 

Signed-off-by: Helin Guo <helinguo@linux.alibaba.com>
This commit is contained in:
Helin Guo 2023-02-13 11:44:58 +08:00
parent 299fc35c37
commit ced3c99895

View File

@ -231,7 +231,7 @@ where
info.config.check_conflicts(config)?; info.config.check_conflicts(config)?;
} }
} }
self.info_list[index] = device_info; self.info_list[index].config = config.clone();
index index
} }
None => { None => {