Browse Source

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

pull/1343/head
Diptanu Choudhury 9 years ago
parent
commit
f5f5ed0c79
  1. 2
      command/agent/check.go

2
command/agent/check.go

@ -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…
Cancel
Save