Making sure the script is not empty if it's a docker check
This commit is contained in:
parent
0a657b2602
commit
210b968037
|
@ -82,7 +82,7 @@ func (c *CheckType) IsTCP() bool {
|
|||
}
|
||||
|
||||
func (c *CheckType) IsDocker() bool {
|
||||
return c.DockerContainerId != "" && c.Interval != 0
|
||||
return c.DockerContainerId != "" && c.Script != "" && c.Interval != 0
|
||||
}
|
||||
|
||||
// CheckNotifier interface is used by the CheckMonitor
|
||||
|
|
Loading…
Reference in New Issue