mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +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: #6324 Signed-off-by: Helin Guo <helinguo@linux.alibaba.com>
This commit is contained in:
parent
299fc35c37
commit
ced3c99895
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user