-
Notifications
You must be signed in to change notification settings - Fork 139
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
Error parsing time (extra text) when creating resources #145
Comments
This would be useful to fix, i am currently stuck because of our environment running on 3.2.0 :) Maybe the fbreckle go-netbox fork can have a fix applied until fix applied upstream? I am missing the skills to fix this myself unfortunately. |
I was actually in the process of rebuilding the client with 3.1.10 but there are some problems with that (see fbreckle/go-netbox#9 (comment)). The corresponding branch is https://github.com/fbreckle/go-netbox/tree/feature/netbox-3.1.10 (not working with go-netbox yet). The problems are mainly with the types of the available-ips endpoints, which seem to have changed in the swagger spec (but the current implementation seems to work with newer netboxes, it is very confusing). Then, there was a spike in PRs in this repo (looking at you, @arjenvri :D) and I focused my time on that. So, regarding a newer client: the netbox maintainers really love to mess with their API/swagger spec, even in minor versions. They explicitly do not follow semver, see netbox-community/netbox#9084 Once we have a stable 3.1.10 release, I will start building a 3.2.0 client. |
A go netbox fix has been merged upstream! |
@arjenvri, @fbreckle we build something to migrate this problem: https://github.com/riege/go-netbox-proxy We know this is a monkey patch and should no longer stay in place as needed! |
This should be solved with https://github.com/e-breuninger/terraform-provider-netbox/releases/tag/v2.0.0 |
More of a FYI.
I'm hitting an issue with the latest release of NetBox. I know I'm getting ahead of myself, so no action needed. Just sharing in case someone else runs into this. The provider creates the resources, however Terraform returns an error complaining about not being able to parse the time like in this issue on StackOverflow.
EDIT: I added a link to the NetBox breaking change in references that I believe is the culprit of this (issue netbox-community/netbox#8463).
Terraform Version
Affected Resource(s)
This affected all the resources tested:
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
What should have happened?
Apply and create the resources
Actual Behavior
What actually happened?
It does create the resources, but Terraform errors out, so it does not save the state.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Resource:
Terraform apply:
Important Factoids
I'm running against a non-tested Netbox version (v3.2.0).
References
v3.2.0 Breaking Changes
The
created
field of all change-logged models now conveys a full datetime object, rather than only a date. (Previous date-only values will receive a timestamp of 00:00.) While this change is largely unconcerning, strictly-typed API consumers may need to be updated.The text was updated successfully, but these errors were encountered: