Skip to content

Commit

Permalink
[addon-operator] Fix/purge nil (#520)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
Co-authored-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
ldmonster and Pavel Okhlopkov authored Nov 5, 2024
1 parent eb49236 commit a4b251f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/module_manager/module_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,9 @@ func (mm *ModuleManager) stateFromHelmReleases(releases []string) *ModulesState
purge := utils.MapStringStructKeys(releasesMap)
purge = utils.SortReverse(purge)

// TODO: need another log if empty
log.Infof("Modules to purge found: %v", purge)
if len(purge) > 0 {
log.Infof("Modules to purge found: %v", purge)
}

return &ModulesState{
ModulesToPurge: purge,
Expand Down

0 comments on commit a4b251f

Please sign in to comment.