mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #17398 from vrothberg/fix-17374
Quadlet: exit 0 when there are no files to process
This commit is contained in:
@ -327,8 +327,10 @@ func main() {
|
||||
}
|
||||
|
||||
if len(units) == 0 {
|
||||
// containers/podman/issues/17374: exit cleanly but log that we
|
||||
// had nothing to do
|
||||
Debugf("No files to parse from %s", sourcePaths)
|
||||
os.Exit(1)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if !dryRun {
|
||||
|
@ -365,7 +365,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
|
||||
session := podmanTest.Quadlet([]string{"-dryrun"}, "/something")
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(1))
|
||||
Expect(session).Should(Exit(0))
|
||||
|
||||
current := session.ErrorToStringArray()
|
||||
expected := "No files to parse from [/something]"
|
||||
|
Reference in New Issue
Block a user