Skip to content

Commit 5491115

Browse files
Merge pull request #13 from NETWAYS/fix/timeout
Fix timeout never being triggered
2 parents 25a7422 + 4b33605 commit 5491115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var (
1313
var rootCmd = &cobra.Command{
1414
Use: "check_elasticsearch",
1515
Short: "Icinga check plugin to check Elasticsearch",
16-
PersistentPostRun: func(cmd *cobra.Command, args []string) {
16+
PersistentPreRun: func(cmd *cobra.Command, args []string) {
1717
go check.HandleTimeout(Timeout)
1818
},
1919
Run: Help,

0 commit comments

Comments
 (0)