scottwinkler / terraform-provider-shell

Terraform provider for executing shell commands and saving output to state file
Mozilla Public License 2.0
279 stars 60 forks source link

read_error value initializes to null and becomes "" after read causing state change on apply #115

Closed JohannesMoersch closed 1 year ago

JohannesMoersch commented 1 year ago

After first creating a script resource, read_error is initialized to null (regardless of whether you return output from create or use a read method). A subsequent terraform_apply will cause read_error to change to "" which terraform reports as a Terraform detected the following changes made outside of Terraform since the last "terraform apply":.

Maybe create just needs to set read_error to ""?

JohannesMoersch commented 1 year ago

Maybe it's still worth addressing (the state change that occurs is real), but I just upgraded to terraform 1.2.9 and terraform doesn't both telling you about the change anymore. Since it's no longer clutter up the output, it probably isn't that big of a deal.

JohannesMoersch commented 1 year ago

Sorry, this is a duplicate of #103