From 84f5c269c86b2499d3503bcb11048f845a756e29 Mon Sep 17 00:00:00 2001 From: Kieren Davies Date: Thu, 16 Mar 2023 15:28:50 +0100 Subject: [PATCH] Alias stats `id` field as `Id`, for Podman compatibility --- src/container.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/container.rs b/src/container.rs index f1edb745..3bdaedfc 100644 --- a/src/container.rs +++ b/src/container.rs @@ -772,6 +772,9 @@ pub struct Stats { pub precpu_stats: CPUStats, pub storage_stats: StorageStats, pub name: String, + + // Podman incorrectly capitalises the "id" field. See https://github.com/containers/podman/issues/17869 + #[serde(alias = "Id")] pub id: String, }