Merge pull request #936 from hangyan/fix-healthcheck-bug

Fix healthcheck parser nil pointer error
This commit is contained in:
Charlie Drage
2018-02-20 11:00:18 -05:00
committed by GitHub
5 changed files with 235 additions and 1 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func parseHealthCheck(composeHealthCheck types.HealthCheckConfig) (kobject.Healt
interval = int32(parse.Seconds())
}
if *composeHealthCheck.Retries != 0 {
if composeHealthCheck.Retries != nil {
retries = int32(*composeHealthCheck.Retries)
}