-
Notifications
You must be signed in to change notification settings - Fork 36
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 session leak in Dell provider: #356
Fix session leak in Dell provider: #356
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #356 +/- ##
==========================================
+ Coverage 44.93% 45.05% +0.12%
==========================================
Files 54 54
Lines 4206 4208 +2
==========================================
+ Hits 1890 1896 +6
+ Misses 2108 2104 -4
Partials 208 208
☔ View full report in Codecov by Sentry. |
This was leaving open sessions in non Dell machines. Closed sessions when the Dell Open function returns error after successfully opening. Signed-off-by: Jacob Weinstock <[email protected]>
1dde313
to
e5a79f8
Compare
Signed-off-by: Jacob Weinstock <[email protected]>
e5a79f8
to
7e0fd36
Compare
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.
Minor feedback.
LGTM
providers/dell/idrac_test.go
Outdated
@@ -12,6 +13,7 @@ import ( | |||
"os" | |||
"testing" | |||
|
|||
bmclibErrs "github.com/bmc-toolbox/bmclib/v2/errors" |
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.
bmclibErrs -> bmcliberrs
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
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.
Thanks for fixing this up!
New version has a session leak fix. bmc-toolbox/bmclib#356 Signed-off-by: Jacob Weinstock <[email protected]>
* Update bmclib library: New version has a session leak fix. bmc-toolbox/bmclib#356 Signed-off-by: Jacob Weinstock <[email protected]> * For some reason i need to update this: I dont understand how its related to my top level go.mod changes. Signed-off-by: Jacob Weinstock <[email protected]> --------- Signed-off-by: Jacob Weinstock <[email protected]>
What does this PR implement/change/remove?
This was leaving open sessions in non Dell machines. Closed sessions when the Dell Open function returns error after successfully opening.
Checklist
The HW vendor this change applies to (if applicable)
The HW model number, product name this change applies to (if applicable)
The BMC firmware and/or BIOS versions that this change applies to (if applicable)
What version of tooling - vendor specific or opensource does this change depend on (if applicable)
Description for changelog/release notes