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

fixes #40 boot commands fail on HPE/iLO #41

Closed
wants to merge 1 commit into from

Conversation

jacobsalmela
Copy link
Contributor

Summary and Scope

  • Fixes:
  • Requires:
  • Relates to:

Issue Type

  • Bugfix Pull Request
  • Docs Pull Request
  • RFE Pull Request

Risks and Mitigations

Signed-off-by: Jacob Salmela <jacob.salmela@hpe.com>
@@ -87,7 +88,11 @@ func getBootInformation(host string) interface{} {
}

for _, b := range systems[0].Boot.BootOrder {
ep := fmt.Sprintf("%s/%s", bo, strings.TrimPrefix(b, "Boot"))
// trim "Boot" and preceding zeros if they exist on the string
ep := fmt.Sprintf("%s/%s", bo, strings.TrimLeft(strings.TrimPrefix(b, "Boot"), "0"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep the zeroes.

Copy link
Contributor

Choose a reason for hiding this comment

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

assuming this is how it'll print to the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this was part of the bug...

@rustydb rustydb linked an issue Mar 6, 2024 that may be closed by this pull request
@rustydb rustydb closed this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boot commands fail on HPE/iLO
2 participants