krata: fix conformance to container startup

This commit is contained in:
alex committed 2024-03-22 23:59:02 +00:00
1 parent 6d6610ca2f
commit 8b57c16f0a
5 files changed
+77 -34

No files matched your search

+4 -1
View File
@@ -191,7 +191,10 @@ impl GuestReconciler {
}
async fn destroy(&self, uuid: Uuid, guest: &mut Guest) -> Result<bool> {
self.runtime.destroy(uuid).await?;
if let Err(error) = self.runtime.destroy(uuid).await {
warn!("failed to destroy runtime guest {}: {}", uuid, error);
}
info!("destroyed guest {}", uuid);
guest.network = None;
guest.state = Some(GuestState {