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

This commit is contained in:
Diptanu Choudhury 2015-10-26 16:27:48 -07:00
parent 0a657b2602
commit 210b968037
1 changed files with 1 additions and 1 deletions

View File

@ -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