When I'm running some command-line tools that return JSON objects, but some fields are sometimes filled with null, the null causes the shell provider to panic.
Here's a minimal Terraform config that will cause a panic:
Shell scripts are only supposed to return maps of strings to strings in the state, so returning null is naughty, but I would like to propose changing the behaviour to turn those nulls into empty strings, instead of panicking.
For now I'm raising an issue but my colleague is working on a pull request as well.
Thankyou for this great provider!
When I'm running some command-line tools that return JSON objects, but some fields are sometimes filled with
null
, thenull
causes the shell provider to panic.Here's a minimal Terraform config that will cause a panic:
Here's an extract from crash.log; I can submit more if need be:
Shell scripts are only supposed to return maps of strings to strings in the state, so returning
null
is naughty, but I would like to propose changing the behaviour to turn those nulls into empty strings, instead of panicking.For now I'm raising an issue but my colleague is working on a pull request as well.