-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix zoneinfo name parsing #398
Conversation
Add aditional test coverage for Normal, Movable and Devize zones Signed-off-by: binjip978 <binjip978@gmail.com>
fixes #386 |
Thanks! Not sure what the rational was for resetting the zone field, so not sure that isn't breaking anything else..? |
Me either, but empty zone name in current version of the test does not look right. |
I can't even remember writing that :) It's just a novice mistake i guess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
data, err := fs.Zoneinfo() | ||
if err != nil { | ||
t.Fatalf("failed to parse zoneinfo: %v", err) | ||
} | ||
if len(data) != 5 { | ||
t.Fatal("failed to get all all node info") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"all all"
Otherwise: LGTM.
(I've tested node-exporter 1.2.1 from the master branch on the system where I initially noticed the bug.)
Add aditional test coverage for Normal, Movable and Devize zones Signed-off-by: binjip978 <binjip978@gmail.com>
Add aditional test coverage for Normal, Movable and Devize zones Signed-off-by: binjip978 <binjip978@gmail.com>
Add aditional test coverage for Normal, Movable and Devize zones
Signed-off-by: binjip978 binjip978@gmail.com