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