Use the files globbed files and not the files in cfg

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
This commit is contained in:
Goutham Veeramachaneni 2017-11-30 17:08:34 +05:30
parent 52c0121890
commit 823b7f90b3
No known key found for this signature in database
GPG key ID: F1C217E8E9023CAD

View file

@ -289,7 +289,7 @@ func main() {
}
files = append(files, fs...)
}
return ruleManager.Update(time.Duration(cfg.GlobalConfig.EvaluationInterval), cfg.RuleFiles)
return ruleManager.Update(time.Duration(cfg.GlobalConfig.EvaluationInterval), files)
},
}