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

fix: add esxcli.Fault and revert Error() string #3131

Merged
merged 1 commit into from
May 19, 2023
Merged

Conversation

dougm
Copy link
Member

@dougm dougm commented May 19, 2023

PR #3072 added fault detail to the error message, breaking existing code at runtime.

akutz
akutz previously approved these changes May 19, 2023
Copy link
Member

@akutz akutz left a comment

Choose a reason for hiding this comment

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

lgtm, thank you! I do wonder if we can look into the ESX sources to find out if there are standard error strings we can then write helper funcs for in this package. I'm thinking something similar to https://pkg.go.dev/k8s.io/apimachinery/pkg/api/errors, where you can do errors.IsNotFound(err) or errors.IsInvalid(err), etc.

govc/host/esxcli/executor.go Outdated Show resolved Hide resolved
PR vmware#3072 added fault detail to the error message, breaking existing code at runtime.
@akutz akutz merged commit 88aa85c into vmware:main May 19, 2023
@dougm dougm deleted the issue-3073 branch May 19, 2023 18:14
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.

3 participants