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

Update esi sdk #2

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Update esi sdk #2

merged 1 commit into from
Apr 30, 2024

Conversation

DanNiESh
Copy link
Collaborator

Related issue: CCI-MOC/esi#536

@DanNiESh DanNiESh requested a review from tzumainn April 24, 2024 00:16
@DanNiESh DanNiESh force-pushed the update branch 2 times, most recently from 51fdde7 to bee250a Compare April 24, 2024 02:37
@tzumainn
Copy link
Collaborator

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"?

@DanNiESh
Copy link
Collaborator Author

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.

@tzumainn
Copy link
Collaborator

Okay, sounds good!

Copy link
Collaborator

@tzumainn tzumainn left a 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?

@DanNiESh DanNiESh force-pushed the update branch 2 times, most recently from 66205ca to 1241804 Compare April 29, 2024 16:59
@DanNiESh
Copy link
Collaborator Author

I've updated the README.md, let me know what you think!

Copy link
Collaborator

@tzumainn tzumainn left a 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.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@DanNiESh
Copy link
Collaborator Author

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!

@tzumainn
Copy link
Collaborator

This looks great - thanks!

@tzumainn tzumainn merged commit 8bc522f into CCI-MOC:main Apr 30, 2024
6 checks passed
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.

2 participants