-
Notifications
You must be signed in to change notification settings - Fork 136
instance(all): added passing recursion to all method to get all information in instance #551
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
instance(all): added passing recursion to all method to get all information in instance #551
Conversation
markylaing
left a comment
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.
@MrDaGree thank you for adding this. Prefetching instance attributes will certainly make the client more efficient!
I've just left a couple of comments that I think will help with readability.
|
Thank you for the feed back! Ill get this worked in here shortly for another review |
|
The changes look great thanks. Could you please squash the two commits into one though? Thanks. |
bb993a3 to
3b7ba60
Compare
|
Wonderful! Squashed |
|
Ahh we've renamed |
|
Sounds good. I've subscribed myself so then I can get notification of that so I am on top of this |
…mation in instance Signed-off-by: Dawson Greeley <[email protected]>
3b7ba60 to
98ff395
Compare
|
Rebased from the merge of #552 |
markylaing
left a comment
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.
LGTM
This fixes `tox -e coverage`. This was not caught when introduced by PR canonical#551 because we our CI job was still only triggering on the old branch name. The CI job was fixed afterward by commit 094bab4. The decision to omit the recursion param was taken because that's easier than trying to fix the mocked HTTP responses. Signed-off-by: Simon Deziel <[email protected]>
This fixes `tox -e coverage`. This was not caught when introduced by PR canonical#551 because we our CI job was still only triggering on the old branch name. The CI job was fixed afterward by commit 094bab4. The decision to omit the recursion param was taken because that's easier than trying to fix the mocked HTTP responses. Signed-off-by: Simon Deziel <[email protected]>
Resolves #548.
I have a project that I am working on that needs to support multi threading. Having pylxd make multiple http calls unfortunately makes my project a lot more complicated due to this. Instead of making something hacky in my project I decided to implement this to help my project and also implement more of the core LXD api.
Current implementation of
instances.all()With this PR: