Skip to content

Update CreateHost variables to accept interface instead of string#17

Open
dakota-marshall wants to merge 2 commits intolrsmith:masterfrom
dakota-marshall:upstream-fixes
Open

Update CreateHost variables to accept interface instead of string#17
dakota-marshall wants to merge 2 commits intolrsmith:masterfrom
dakota-marshall:upstream-fixes

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