Skip to content

Commit 9640693

Browse files
committed
quadlet: remove indirect logrus import
Reduces quadlet binary size about 170kb. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent 5c89b64 commit 9640693

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/systemd/quadlet/quadlet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111

1212
"github.com/containers/podman/v5/pkg/specgenutilexternal"
1313
"github.com/containers/podman/v5/pkg/systemd/parser"
14-
"github.com/containers/storage/pkg/fileutils"
1514
"github.com/containers/storage/pkg/regexp"
1615
)
1716

@@ -752,7 +751,7 @@ func ConvertContainer(container *parser.UnitFile, isUser bool, unitsInfoMap map[
752751
for _, device := range devices {
753752
if device[0] == '-' {
754753
device = device[1:]
755-
err := fileutils.Exists(strings.Split(device, ":")[0])
754+
_, err := os.Stat(strings.Split(device, ":")[0])
756755
if errors.Is(err, os.ErrNotExist) {
757756
continue
758757
}

0 commit comments

Comments
 (0)