Skip to content

Commit

Permalink
Look for Id field instead of id when deserializing stats
Browse files Browse the repository at this point in the history
This is needed for compatibility with Podman.
  • Loading branch information
kierendavies committed Mar 16, 2023
1 parent 7b9673c commit 7830e6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ pub struct Stats {
pub precpu_stats: CPUStats,
pub storage_stats: StorageStats,
pub name: String,
#[serde(rename = "Id")]
pub id: String,
}

Expand Down

0 comments on commit 7830e6f

Please sign in to comment.