Commit Graph

6 Commits

Author SHA1 Message Date
Sebastian Rivera
b1c22d333e Fix error formatting for missing env and config value
We previously used to throw an error denoting where in the configuration the attribute was missing or invalid.
Considering that organization can be now be omitted from the configuration, our previous error message will be
improperly formatted. This commit also updates the message to mention `TF_ORGANIZATION` as a valid substitute if
organization is missing or invalid in the configuration.
2022-03-30 11:04:30 -04:00
Nick Fagerlund
baa72ce235 Simplify logic flow: everything is a constraint
Explicit version strings are actually also version constraints! And the special
comparisons we were doing to allow a range of compatible versions can also be
expressed as version constraints.

Bonus: also simplify the way we handle version check errors, by composing the
messages inline and only extracting the repetitive parts into a function.
2021-10-28 19:29:13 -05:00
Barrett Clark
83538fdd6b Shift errors to error file, improve error text 2021-10-28 19:29:13 -05:00
Barrett Clark
83337de654 Remove prefix from the cloud backend config
Now that we have tags we no longer need prefix.
2021-10-28 19:29:12 -05:00
Chris Arcand
6dcd0db265 Map CLI workspaces by TFC tags 2021-10-28 19:29:10 -05:00
Omar Ismail
8f49757f89 Add testing for Cloud PrepareConfig 2021-10-28 19:29:10 -05:00