mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
Merge pull request #26472 from Luap99/quadlet-nologrus
quadlet: remove indirect logrus import
This commit is contained in:
@ -11,7 +11,6 @@ import (
|
||||
|
||||
"github.com/containers/podman/v5/pkg/specgenutilexternal"
|
||||
"github.com/containers/podman/v5/pkg/systemd/parser"
|
||||
"github.com/containers/storage/pkg/fileutils"
|
||||
"github.com/containers/storage/pkg/regexp"
|
||||
)
|
||||
|
||||
@ -754,7 +753,7 @@ func ConvertContainer(container *parser.UnitFile, isUser bool, unitsInfoMap map[
|
||||
for _, device := range devices {
|
||||
if device[0] == '-' {
|
||||
device = device[1:]
|
||||
err := fileutils.Exists(strings.Split(device, ":")[0])
|
||||
_, err := os.Stat(strings.Split(device, ":")[0])
|
||||
if errors.Is(err, os.ErrNotExist) {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user