-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Apis docstirngs and improved logging, fix create repository #325
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits. Could we also update changelog?
repository = repository._tuf_repository | ||
""" | ||
Return role TUF object based on its name | ||
""" | ||
if isinstance(repository, Repository): | ||
repository = repository._repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will repository
be None if repository is not an instance of Repository
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, this was a quick fix because repository was either a TAF repository or a TUF repository (which is what repository._repository
returns. We should look into all calls and standardize the input (either expect one or the other). Not sure if that's worth cramming into this PR because it's mostly focused on logging and docstirng. We could create an issue to make sure we don't forget about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, let's create an issue
Description (e.g. "Related to ...", etc.)
Code review checklist (for code reviewer to complete)