Skip to content

Commit

Permalink
fix(gadget-sdk): use the right field for container status
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Nov 22, 2024
1 parent 851c73f commit 83c398c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ impl<'a> Container<'a> {
});

let containers = self.connection.list_containers(options).await?;
let Some(status) = &containers[0].status else {
let Some(status) = &containers[0].state else {
return Ok(None);
};

Expand Down

0 comments on commit 83c398c

Please sign in to comment.