Skip to content

Commit

Permalink
Merge pull request #383 from jacobweinstock/open-fix
Browse files Browse the repository at this point in the history
[OpenBMC] Return err if open fails:
  • Loading branch information
joelrebel authored Feb 28, 2024
2 parents e23dfc5 + 90f2257 commit 7a00485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/openbmc/openbmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func New(host, user, pass string, log logr.Logger, opts ...Option) *Conn {
// Open a connection to a BMC via redfish
func (c *Conn) Open(ctx context.Context) (err error) {
if err := c.deviceSupported(ctx); err != nil {
return nil
return err
}

if err := c.redfishwrapper.Open(ctx); err != nil {
Expand Down

0 comments on commit 7a00485

Please sign in to comment.