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 #16

Closed
wants to merge 2 commits into from

Conversation

dakota-marshall
Copy link

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!

@dakota-marshall dakota-marshall deleted the branch lrsmith:master August 29, 2024 19:03
@dakota-marshall dakota-marshall deleted the master branch August 29, 2024 19:03
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