Fix healthcheck parser nil pointer error

This commit is contained in:
Hang Yan committed 2018-02-09 11:10:03 +08:00
1 parent f857afad1c
commit b8f1707d30
5 files changed
+235 -1

No files matched your search

+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)
}