-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Description
Fatal Error occurs when trying to perform the utils function that creates a dashboard converting JSON code into HCL for terraform using the newrelic cli on version 0.103.3. The error is related to the billboardThreshold for a widget.
Current behavior
I am experiencing a FATAL Error when trying to perform a utils script.
Expected behavior
I am expecting the cli to be able to parse a JSON file and produce a HCL terraform file.
Steps To Reproduce
Steps to reproduce the behavior:
- Create a dashboard in NewRelic
- Create a widget in this dashboard using a chart
- Copy the JSON to clipboard
- Paste the JSON to a file in a directory
- Save the new file as a JSON file
- Open a CLI where the new file has been saved
- Run the command
newrelic utils terraform dashboard -f {{the JSON file just made}}.json -o {{some file name}}.tf
Debug Output (if applicable)
FATAL Error unmarshalling billboardThreshold:unexpected end of JSON input
Additional Context
This has been tested against v0.93.x and it runs fine, but when running on v0.103.3 it does not work.
Terraform version: v1.13.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels