Skip to content

Commit

Permalink
fix(purge): fix final repo stages deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Mar 17, 2022
1 parent 14cd44d commit 11ed6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cleaning/purge.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 11ed6f7

Please sign in to comment.