Skip to content

Commit 2129e1c

Browse files
dimsCreatone
authored andcommitted
Avoid using container/podman in manager.go
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent d19df4f commit 2129e1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

manager/manager.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"github.com/google/cadvisor/cache/memory"
3131
"github.com/google/cadvisor/collector"
3232
"github.com/google/cadvisor/container"
33-
"github.com/google/cadvisor/container/podman"
3433
"github.com/google/cadvisor/container/raw"
3534
"github.com/google/cadvisor/events"
3635
"github.com/google/cadvisor/fs"
@@ -274,7 +273,7 @@ type manager struct {
274273
}
275274

276275
func (m *manager) PodmanContainer(containerName string, query *info.ContainerInfoRequest) (info.ContainerInfo, error) {
277-
container, err := m.namespacedContainer(containerName, podman.Namespace)
276+
container, err := m.namespacedContainer(containerName, PodmanNamespace)
278277
if err != nil {
279278
return info.ContainerInfo{}, err
280279
}
@@ -1386,7 +1385,7 @@ func (m *manager) containersInfo(containers map[string]*containerData, query *in
13861385
}
13871386

13881387
func (m *manager) AllPodmanContainers(query *info.ContainerInfoRequest) (map[string]info.ContainerInfo, error) {
1389-
containers := m.getAllNamespacedContainers(podman.Namespace)
1388+
containers := m.getAllNamespacedContainers(PodmanNamespace)
13901389
return m.containersInfo(containers, query)
13911390
}
13921391

0 commit comments

Comments
 (0)