Skip to content
Permalink
Browse files
fix(purge): fix final repo stages deletion
Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Mar 17, 2022
1 parent 14cd44d commit 11ed6f7fcb61b6b7e5481eadc1e0b60a7b189072
Showing with 2 additions and 2 deletions.
  1. +2 −2 pkg/cleaning/purge.go
@@ -97,12 +97,12 @@ func (m *purgeManager) run(ctx context.Context) error {

if m.StorageManager.GetFinalStagesStorage() != nil {
if err := logboek.Context(ctx).Default().LogProcess("Deleting final stages").DoError(func() error {
stages, err := m.StorageManager.GetStageDescriptionList(ctx)
finalStages, err := m.StorageManager.GetFinalStageDescriptionList(ctx)
if err != nil {
return err
}

return m.deleteStages(ctx, stages, true)
return m.deleteStages(ctx, finalStages, true)
}); err != nil {
return err
}

0 comments on commit 11ed6f7

Please sign in to comment.