Skip to content

Commit

Permalink
fix invalid default MQTT config
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Nov 8, 2017
1 parent 15d9a38 commit 396566c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- [#1641](https://github.com/influxdata/kapacitor/issues/1641): Logs API writes multiple http headers.
- [#1657](https://github.com/influxdata/kapacitor/issues/1657): Fix missing dependency in rpm package.
- [#1660](https://github.com/influxdata/kapacitor/pull/1660): Force tar owner/group to be root.
- [#1662](https://github.com/influxdata/kapacitor/issues/1662): Fix invalid default MQTT config.

## v1.3.3 [2017-08-11]

Expand Down
2 changes: 1 addition & 1 deletion services/mqtt/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (cs Configs) Validate() error {
return err
}
}
if defaultCount > 0 {
if defaultCount > 1 {
return errors.New("more than one configuration is marked as the default")
}
if defaultCount == 0 && len(cs) > 1 {
Expand Down

0 comments on commit 396566c

Please sign in to comment.