Append host if arguments are specified for ping input (#5450)

This commit is contained in:
Greg
2019-02-19 12:18:15 -07:00
committed by Daniel Nelson
parent c18934f065
commit e586fdb27f
2 changed files with 3 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ func hostPinger(binary string, timeout float64, args ...string) (string, error)
// args returns the arguments for the 'ping' executable
func (p *Ping) args(url string, system string) []string {
if len(p.Arguments) > 0 {
return p.Arguments
return append(p.Arguments, url)
}
// build the ping command args based on toml config