Making sure the script is not empty if it's a docker check

pull/1343/head
Diptanu Choudhury 9 years ago
parent b4af7f44af
commit f5f5ed0c79

@ -82,7 +82,7 @@ func (c *CheckType) IsTCP() bool {
} }
func (c *CheckType) IsDocker() 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 // CheckNotifier interface is used by the CheckMonitor

Loading…
Cancel
Save