mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-30 23:40:45 +00:00
Merge pull request #270 from Lion-Wei/fix-version
fix node-problem-detector --version to not require monitors specify
This commit is contained in:
@@ -60,15 +60,15 @@ func main() {
|
||||
|
||||
pflag.Parse()
|
||||
|
||||
npdo.SetNodeNameOrDie()
|
||||
|
||||
npdo.ValidOrDie()
|
||||
|
||||
if npdo.PrintVersion {
|
||||
version.PrintVersion()
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
npdo.SetNodeNameOrDie()
|
||||
|
||||
npdo.ValidOrDie()
|
||||
|
||||
monitors := make(map[string]types.Monitor)
|
||||
for _, config := range npdo.SystemLogMonitorConfigPaths {
|
||||
if _, ok := monitors[config]; ok {
|
||||
|
||||
Reference in New Issue
Block a user