Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
style(meta): wrong copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Commarieu committed Oct 22, 2019
1 parent 98ae941 commit 9b32d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/policy/backend/nomadmeta/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ func (pr *Processor) maxCountValueOrDefault(meta map[string]string) int {

func (pr *Processor) minCountValueOrDefault(meta map[string]string) int {
if val, ok := meta[metaKeyMinCount]; ok {
maxInt, err := strconv.Atoi(val)
minInt, err := strconv.Atoi(val)
if err != nil {
pr.logger.Error().Err(err).Msg("failed to convert min count meta value to int")
return policy.DefaultMinCount
}
return maxInt
return minInt
}
return policy.DefaultMinCount
}
Expand Down

0 comments on commit 9b32d16

Please sign in to comment.