scottwinkler / terraform-provider-shell

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

Feature/bug fix #5

Closed scottwinkler closed 5 years ago

scottwinkler commented 5 years ago

Minor bug fixes addressing two issues: 1) Old state was not being passed to stdin. Now the output from the read/create is passed to stdin -- environment variables can still be read as normal. 2) If the read returns a corrupted state, then it would trigger a panic when trying to set output. Now it returns nil to prevent this from happening.