Skip to content

Commit

Permalink
Make sure to not overwrite information files if POD contains multiple
Browse files Browse the repository at this point in the history
containers.
  • Loading branch information
stonemaster authored and André Stein committed Oct 19, 2022
1 parent aec37d5 commit b4a0738
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core-dump-composer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ fn handle(mut cc: config::CoreConfig) -> Result<(), anyhow::Error> {
debug!("Successfully got the process details {}", ps_object);

if let Some(containers) = ps_object["containers"].as_array() {
for container in containers {
let counter = 0;
for (counter, container) in containers.iter().enumerate() {
let img_ref = match container["imageRef"].as_str() {
Some(v) => v,
None => {
Expand Down

0 comments on commit b4a0738

Please sign in to comment.