Skip to content

Commit a600e67

Browse files
author
schavezc
committed
fix mocks
1 parent b13b0e9 commit a600e67

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

runtime/podman/podman.go

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -495,29 +495,11 @@ func (*PodmanRuntime) StreamLogs(ctx context.Context, containerName string) (io.
495495
return nil, fmt.Errorf("StreamLogs not implemented for Podman runtime")
496496
}
497497

498-
// InspectImage returns detailed information about a container image.
499-
func (p *PodmanRuntime) InspectImage(
498+
func (*PodmanRuntime) InspectImage(
500499
ctx context.Context,
501500
imageName string,
502501
) (*runtime.ImageInspect, error) {
503-
504-
// Use Podman API bindings instead of shelling out to CLI
505-
imageData, err := images.GetImage(ctx, p.Conn(), imageName, nil)
506-
if err != nil {
507-
return nil, fmt.Errorf("failed to inspect image %s: %w\nOutput:\n%s", imageName, err, string(output))
508-
}
509-
510-
labels := imageData.Config.Labels
511-
if labels == nil {
512-
labels = make(map[string]string)
513-
}
514-
515-
return &runtime.ImageInspect{
516-
ID: imageData.ID,
517-
Config: runtime.ImageConfig{
518-
Labels: labels,
519-
},
520-
}, nil
502+
return nil, fmt.Errorf("InspectImage not implemented for Podman runtime")
521503
}
522504

523505
func (*PodmanRuntime) StreamEvents(

0 commit comments

Comments
 (0)