terraform-provider-shell icon indicating copy to clipboard operation
terraform-provider-shell copied to clipboard

Pass previous state as input

Open AndreiPashkin opened this issue 3 years ago • 1 comments

It could be useful for scripts to be able to operate on previous state to make decision whether previous value must be updated or retained.

AndreiPashkin avatar Jul 29 '21 00:07 AndreiPashkin

Sorry, my bad, it's already implemented: https://github.com/scottwinkler/terraform-provider-shell/blob/b477c4ae84984c072dc04cafaf7f1ad15a76f157/shell/utility.go#L43

It's not documented though.

AndreiPashkin avatar Jul 29 '21 00:07 AndreiPashkin