Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rossf7 committed Jun 8, 2023
1 parent 009d659 commit 47ed17b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sensors/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ impl ProcessTracker {
container_id = container_id.split(':').last().unwrap().to_string();
}
if container_id.starts_with("cri-containerd-") {
container_id = container_id.strip_prefix("cri-containerd-").unwrap().to_string();
container_id = container_id
.strip_prefix("cri-containerd-")
.unwrap()
.to_string();
}
Ok(container_id)
}
Expand Down

0 comments on commit 47ed17b

Please sign in to comment.