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

Commit

Permalink
pids limit validation
Browse files Browse the repository at this point in the history
  • Loading branch information
phylake committed Jan 24, 2018
1 parent 0a796a4 commit 98bf74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ func (recv *Region) ValidateContainers() error {
}
}

if container.PidsLimit < -1 {
return errors.New("pids_limit less than -1")
if container.PidsLimit < 1 {
return errors.New("pids_limit must be greater than or equal to 1")
}

if containerCount > 1 && !containerNameRegex.MatchString(container.Name) {
Expand Down

0 comments on commit 98bf74f

Please sign in to comment.