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

How does your update host method work? #1

Open
enlewof opened this issue Nov 8, 2016 · 2 comments
Open

How does your update host method work? #1

enlewof opened this issue Nov 8, 2016 · 2 comments

Comments

@enlewof
Copy link

enlewof commented Nov 8, 2016

Hi,

I started using your modules which saved me a lot of time on a project I was working on. However, I'm having trouble using your update_host function. How should the put be structured? Something like:

o.update_host(<host_id>,<json>)

Thanks.

@pschmitt
Copy link
Owner

This function only takes one argument: the JSON representing the host, as it would be returned by get_host_by_name or the other host retrieval functions. Said JSON contains the host_id so there is no need to specify it separately.

@lingfish
Copy link
Contributor

Might want to document that in the README perhaps?

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

No branches or pull requests

3 participants