Skip to content

Commit

Permalink
Fix heartbeat not accepting mode parameter (#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Siering authored and ruflin committed Dec 6, 2016
1 parent 78f547f commit 857e677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion heartbeat/monitors/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ func (p *PingMode) Unpack(s string) error {
*p = PingAll
case "any":
*p = PingAny
default:
return fmt.Errorf("expecting 'any' or 'all', not '%v'", s)
}
return errors.New("expecting 'any' or 'all'")
return nil
}

func annotated(start time.Time, typ string, fn func() (common.MapStr, []TaskRunner, error)) TaskRunner {
Expand Down

0 comments on commit 857e677

Please sign in to comment.