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

Fix config context to be a map of objects #2

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

jake2184
Copy link

Currently go-netbox fails to parse a JSON response for config context unless it fits the very simple scheme of 'a map of strings'.

This PR allows it to correctly map arbitrary JSON values for config context.

I am hitting this in terraform-provider-netbox - I'm adding a VM data source but it errors when reading the API response.

@jake2184
Copy link
Author

The same issue is also present with LocalContextData. If this PR is approved in principle I can add that as well

@fbreckle
Copy link
Owner

fbreckle commented Nov 18, 2020

I'll merge this for now. We will have to see if everything works when implementing Config Contexts in terraform-provider-netbox

@fbreckle fbreckle merged commit fee5a83 into fbreckle:master Nov 18, 2020
fbreckle added a commit that referenced this pull request Sep 13, 2023
fbreckle added a commit that referenced this pull request Sep 13, 2023
fbreckle added a commit that referenced this pull request Sep 15, 2023
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.

None yet

2 participants