Skip to content

Commit

Permalink
Fix heartbeat not accepting mode parameter (elastic#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Siering authored and suraj-soni committed Dec 15, 2016
1 parent aaffdde commit ad9114c
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 ad9114c

Please sign in to comment.