1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 10:17:26 +08:00

Fix condition

This commit is contained in:
Marcos Lilljedahl 2017-02-01 18:25:28 -03:00
parent 434256f9cc
commit 4374b5b9c8

View File

@ -192,7 +192,7 @@ func CreateInstance(session *Session, dindImage string) (*Instance, error) {
var pidsLimit = int64(1000)
if envLimit := os.Getenv("MAX_PROCESSES"); envLimit != "" {
if i, err := strconv.Atoi(envLimit); err != nil {
if i, err := strconv.Atoi(envLimit); err == nil {
pidsLimit = int64(i)
}
}