forked from LaconicNetwork/kompose
Fix healthcheck parser nil pointer error
This commit is contained in:
1 parent
f857afad1c
commit
b8f1707d30
5 files changed
+235
-1
No files matched your search
@@ -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