-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update esi sdk #2
Conversation
51fdde7
to
bee250a
Compare
Looks good! Can you update the description of the PR to be a bit more specific about the contents - e.g., "updates to object attributes, addition of functional tests"? |
Done! I'm now working on python-esileapclient PR. I might update this PR slightly (attribute naming, etc.) to sync with python-esileapclient if necessary. I 'll let you know when this one is in final stage to review. |
Okay, sounds good! |
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.
Looks good! I think it could use one thing: in the README, could you add a quick explanation of how you'd use this sdk within a python script?
66205ca
to
1241804
Compare
I've updated the README.md, let me know what you think! |
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.
Thanks for adding the README! The code works well; there's just a few minor inaccuracies in the documentation that I've noted.
Could you also add a connect
method, similar to https://github.com/openstack/openstacksdk/blob/master/openstack/__init__.py? What this allows one to do is have code like:
import openstack
conn = openstack.connect()
nodes = conn.baremetal.nodes(details=True)
And the openstacksdk will simply pull from your current environment.
Done! |
This looks great - thanks! |
Related issue: CCI-MOC/esi#536