Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
otterobert committed Sep 1, 2024
1 parent 8bdec72 commit 3087014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/node-agent/pkg/container/containerinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package container
import "github.com/otterize/network-mapper/src/bintools/bininfo"

type ContainerInfo struct {
Id string
Pid int `json:"pid"`
PodId string `json:"sandboxId"`
PodIP string
Id string
Pid int `json:"pid"`
PodId string `json:"sandboxId"`
PodIP string
ExecutableInfo ExecutableInfo
}

type ExecutableInfo struct {
Expand Down
4 changes: 2 additions & 2 deletions src/node-agent/pkg/container/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ func (m *ContainerManager) GetContainerInfo(ctx context.Context, pod v1.Pod, con
info.PodIP = pod.Status.PodIP

// Get the executable info
execInfo, err := m.InspectContainerExec(info.GetPID())
execInfo, err := m.InspectContainerExec(info.Pid)
if err != nil {
return nil, errors.Wrap(err)
return ContainerInfo{}, errors.Wrap(err)
}
info.ExecutableInfo = execInfo

Expand Down

0 comments on commit 3087014

Please sign in to comment.