Skip to content

Commit

Permalink
Fix timeout never being triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Nov 23, 2022
1 parent 25a7422 commit 4b33605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
var rootCmd = &cobra.Command{
Use: "check_elasticsearch",
Short: "Icinga check plugin to check Elasticsearch",
PersistentPostRun: func(cmd *cobra.Command, args []string) {
PersistentPreRun: func(cmd *cobra.Command, args []string) {
go check.HandleTimeout(Timeout)
},
Run: Help,
Expand Down

0 comments on commit 4b33605

Please sign in to comment.