Skip to content

Helper methods#45

Closed
gijzelaerr wants to merge 4 commits intopython-oca:masterfrom
gijzelaerr:helper_methods
Closed

Helper methods#45
gijzelaerr wants to merge 4 commits intopython-oca:masterfrom
gijzelaerr:helper_methods

Conversation

@gijzelaerr
Copy link
Contributor

This makes the API a bit easier to use. You can now do:

client = oca.Client(ONE_USER + ':' + ONE_PASSWORD, ONE_ENDPOINT)
vmpool = client.vm_template_pool()
vmpool.info()
print(vmpool)

@gijzelaerr
Copy link
Contributor Author

actually i made a mistake here, the allocation functions are not correctly mapped. I should maybe have added some tests, or just add everything explicitly?

@sysradium
Copy link
Collaborator

Yes, I believe you need to add a few tests.

@gijzelaerr gijzelaerr closed this Dec 16, 2022
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