Alisdair McDiarmid
91d75baba1
cli: Improved error for invalid -var "foo = bar"
...
When specifying variable values on the command line, name-value pairs
must be joined with an equals sign, without surrounding spaces.
Previously Terraform would interpret "foo = bar" as assigning the value
" bar" to the variable named "foo ". This is never valid, as variable
names may not include whitespace.
This commit looks for this specific error and returns a diagnostic with
a suggestion for correcting it. We cannot simply trim whitespace,
because it is valid to write "foo= bar" to assign the value " bar" to
the variable "foo", as unlikely as it seems.
2022-05-03 09:14:29 -04:00
..
2022-01-13 11:00:03 -06:00
2022-04-15 12:38:14 -06:00
2021-08-17 15:20:05 -07:00
2022-04-08 17:34:16 +01:00
2022-04-20 09:17:10 -04:00
2022-02-19 01:55:09 +09:00
2022-04-27 13:30:15 -04:00
2021-10-28 16:00:02 -04:00
2022-04-27 13:30:15 -04:00
2022-04-27 13:30:15 -04:00
2022-04-22 14:36:42 -04:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2021-10-29 21:23:28 -05:00
2022-04-08 17:34:16 +01:00
2022-01-08 14:41:20 +11:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2021-08-17 15:20:05 -07:00
2021-10-28 11:51:39 -04:00
2022-04-08 17:34:16 +01:00
2021-10-29 14:41:05 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-11-11 12:28:10 +00:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-03-25 14:31:52 +00:00
2022-04-08 17:34:16 +01:00
2021-10-28 11:51:39 -04:00
2022-04-08 17:34:16 +01:00
2022-04-04 08:12:44 -07:00
2021-10-28 19:29:13 -05:00
2021-12-01 11:43:41 -06:00
2022-04-08 17:34:16 +01:00
2022-03-30 17:50:08 -04:00
2021-11-11 12:28:16 +00:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-10-05 10:59:59 -07:00
2022-04-08 17:34:16 +01:00
2022-05-03 09:14:29 -04:00
2022-03-31 13:42:42 -04:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2022-05-03 09:14:29 -04:00
2022-03-30 09:52:49 +01:00
2022-04-08 17:34:16 +01:00
2021-10-01 14:43:58 -07:00
2021-05-17 14:09:07 -07:00
2021-09-10 14:56:49 -07:00
2022-04-08 17:34:16 +01:00
2021-05-19 12:56:16 -04:00
2021-05-19 12:56:16 -04:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:21 -05:00
2022-04-08 17:34:16 +01:00
2022-01-13 11:00:03 -06:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2022-04-08 17:34:16 +01:00
2022-03-31 13:42:42 -04:00
2022-04-08 17:34:16 +01:00
2021-11-11 12:28:10 +00:00
2021-05-17 14:09:07 -07:00
2021-09-21 22:26:16 -05:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-28 19:29:09 -05:00
2022-04-08 17:34:16 +01:00
2021-08-30 13:59:14 -07:00
2022-04-08 17:34:16 +01:00
2021-05-17 14:09:07 -07:00
2022-04-08 17:34:16 +01:00
2021-10-13 13:54:11 -07:00
2022-01-08 14:41:20 +11:00
2021-10-28 19:29:09 -05:00
2022-01-08 14:41:20 +11:00
2022-01-08 14:41:20 +11:00
2021-05-17 14:09:07 -07:00