From 6ee565b3c9f1f1e81d8a123d70f663776cb2fe75 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 26 Aug 2022 07:56:29 +0300 Subject: [PATCH] Fix correct output of purge_on_delete value --- http/api/process.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/http/api/process.go b/http/api/process.go index 7ed4eb39..7365e176 100644 --- a/http/api/process.go +++ b/http/api/process.go @@ -175,9 +175,10 @@ func (cfg *ProcessConfig) Unmarshal(c *app.Config) { for _, c := range x.Cleanup { io.Cleanup = append(io.Cleanup, ProcessConfigIOCleanup{ - Pattern: c.Pattern, - MaxFiles: c.MaxFiles, - MaxFileAge: c.MaxFileAge, + Pattern: c.Pattern, + MaxFiles: c.MaxFiles, + MaxFileAge: c.MaxFileAge, + PurgeOnDelete: c.PurgeOnDelete, }) }