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 CreateHost variables to accept interface instead of string #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dakota-marshall
Copy link

Note: Closed and reopened this request as I renamed the downstream branch so I can continue working with the master branch name, sorry about that


The Icinga API documentation mentions that it accepts a dict for the vars attribute of a Host object. The HostAttrs struct also accepts an interface, this changes brings CreateHost to match with map[string]interface{} instead of forcing the limited scope of map[string]string

I updated the tests and ran them locally, and they passed, though admittedly I ran them manually as I am not entirely sure how to use the Makefile.

This is a precursor to attempting to fix the downstream Terraform provider that does not accept anything other than a string: Icinga/terraform-provider-icinga2#88

Let me know if I am missing anything!

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.

1 participant