forked from LaconicNetwork/kompose
Merge pull request #936 from hangyan/fix-healthcheck-bug
Fix healthcheck parser nil pointer error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user