Skip to content
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

Rework intel amt provider to not panic: #304

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Jan 23, 2023

What does this PR implement/change/remove?

Panics were happening because of not handling return errors from amt.NewClient.

Checklist

  • Tests added
  • Similar commits squashed

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)

Intel AMT

What version of tooling - vendor specific or opensource does this change depend on (if applicable)

Description for changelog/release notes

Fix IntelAMT provider panics.

Panics were happening because of not handling
return errors from `amt.NewClient`.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Base: 46.41% // Head: 45.49% // Decreases project coverage by -0.92% ⚠️

Coverage data is based on head (3d91de1) compared to base (1dbc470).
Patch coverage: 29.41% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
- Coverage   46.41%   45.49%   -0.92%     
==========================================
  Files          27       27              
  Lines        2273     2266       -7     
==========================================
- Hits         1055     1031      -24     
- Misses       1103     1120      +17     
  Partials      115      115              
Impacted Files Coverage Δ
providers/intelamt/intelamt.go 73.52% <29.41%> (-25.14%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@joelrebel joelrebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@mergify mergify bot merged commit 4c95029 into bmc-toolbox:main Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants