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

Ensure errors.json with structured data is parsed #995

Merged
merged 1 commit into from
Nov 13, 2019
Merged

Ensure errors.json with structured data is parsed #995

merged 1 commit into from
Nov 13, 2019

Conversation

johnSchnake
Copy link
Contributor

What this PR does / why we need it:
Currently, we were handling only the simple case where the errors.json
file contains a map of strings. However, there are situations where
the JSON file may contain more structured data that needs to be handled.

Which issue(s) this PR fixes
Fixes #994

Special notes for your reviewer:

Release note:

Fixed a bug which caused some error files from being properly parsed by Sonobuoy leading to less helpful output from the `sonobuoy results` command.

@johnSchnake johnSchnake requested a review from zubron November 13, 2019 15:10
Currently we were handling only the simple case where the errors.json
file contains a map of strings. However, there are situations where
the json file may contain more structured data which needs handled.

Fixes #994

Signed-off-by: John Schnake <[email protected]>
@johnSchnake
Copy link
Contributor Author

I had updated an error message slightly and one test that wasn't on my radar failed. Pushed the fix and waiting for green to merge.

@johnSchnake johnSchnake merged commit 6f983e2 into vmware-tanzu:master Nov 13, 2019
@johnSchnake johnSchnake deleted the postProcessingErrFileInterfaces branch November 13, 2019 16:06
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.

Decoding file /tmp/sonobuoy/..../error.json cannot unmarshal object into Go value of type string
2 participants