Files
opentf/internal
Nick Fagerlund c99f5972de cloud.StateMgr(): Set terraform version AFTER creating workspace
Previously, if the remote TFC/TFE instance doesn't happen to have a tool_version
record whose name exactly matches the value of `tfversion.String()`, Terraform
would be completely blocked from using the `terraform workspace new` command
(when configured with the tags strategy) — the API would give a 422 to the
whole create request.

This commit changes the StateMgr() function to do the work in two passes; first
create the workspace (which should work fine regardless), THEN update the
Terraform version and print a warning to the terminal if it fails (which 99% of
the time is a benign failure with little impact on your future CLI usage).
2021-10-28 19:29:18 -05:00
..
2021-10-28 19:29:17 -05:00
2021-09-01 11:36:21 -04:00
2021-10-28 19:29:09 -05:00
2020-10-08 08:42:16 -04:00
2021-09-01 11:36:21 -04:00
2021-05-17 14:09:07 -07:00
2021-08-17 15:20:05 -07:00
2021-10-12 11:42:17 -07:00
2021-05-17 14:09:07 -07:00
2021-08-17 15:20:05 -07:00
2021-08-17 15:20:05 -07:00
2020-12-02 13:59:19 -05:00