mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
node-problem-detector --version should 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