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

erratum: stash json to enable get_erratum_data() #159

Merged

Conversation

sosiouxme
Copy link
Collaborator

No description provided.

Copy link
Member

@ktdreyer ktdreyer left a comment

Choose a reason for hiding this comment

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

This is great.There are a few things I want to add (docstring and tests), and we can do that in a separate PR.

@@ -211,6 +212,7 @@ def _fetch(self, errata_id):
# NEW_FILES QE etc.
self.errata_state = erratum['status']
self._original_state = self.errata_state
self._original_json = erratum
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is only capturing the API/v1 content. The old style errata content is not here. It's entirely fine if that's what you need, but I just wanted to make a note of that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

There are a few fields that are not in the API/v1 content; see line 270-ish.

@ktdreyer ktdreyer merged commit 5c385de into red-hat-storage:master Apr 22, 2019
@yazug
Copy link
Collaborator

yazug commented Apr 22, 2019

this partially addresses issue #156

@ktdreyer
Copy link
Member

I've added docs and tests in #160

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.

4 participants