Nick Fagerlund
02e62c9851
Cloud: Init without erroring when no workspaces match the tags ( #29835 )
...
Previously, `terraform init` was throwing an error if you configured the cloud
block with `tags` and there weren't any tagged workspaces yet. Confusing and
alienating, since that that's a fairly normal situation! Basically TFC was
handling an empty list of workspaces worse than other backends, because it
doesn't support an unnamed default workspace.
This commit catches that condition during `Meta.selectBackend()` and asks the
user to pick a name for their first tagged workspace. If they cancel out, we
still error, but if we know what name they want, we can handle it the same way
as a nonexistent workspace specified in `name` -- just pass it to
`Meta.SetWorkspace()`, and let the workspace get implicitly created when
`InitCommand.Run()` eventually calls `StateMgr()`.
2021-11-01 10:20:15 -07:00
..
2021-10-20 06:42:47 -07:00
2021-09-29 13:36:59 -07:00
2021-08-17 15:20:05 -07:00
2021-10-25 12:45:35 -04:00
2021-09-23 14:37:08 -07:00
2021-09-03 13:53:52 -04:00
2021-10-06 11:13:06 -04:00
2021-10-28 16:00:02 -04:00
2021-10-06 11:13:06 -04:00
2021-11-01 08:46:15 -07:00
2021-10-20 06:42:47 -07:00
2021-05-17 14:09:07 -07:00
2021-09-10 14:56:49 -07:00
2021-05-17 14:09:07 -07:00
2021-10-13 17:28:14 -04:00
2021-10-29 21:23:28 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-20 06:42:47 -07: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
2021-05-17 14:09:07 -07: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
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-09-13 13:45:04 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-01 14:43:58 -07:00
2021-10-28 19:29:09 -05:00
2021-10-19 09:45:15 -04:00
2021-10-28 19:29:16 -05:00
2021-05-17 14:09:07 -07:00
2021-10-28 11:51:39 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:13 -05:00
2021-10-28 19:29:21 -05:00
2021-10-25 15:08:10 -04:00
2021-11-01 10:20:15 -07:00
2021-10-28 19:29:09 -05: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
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-21 08:44:26 -04:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-10-01 14:43:58 -07:00
2021-10-28 19:29:21 -05:00
2021-05-17 14:09:07 -07: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
2021-05-19 12:56:16 -04: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
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:21 -05:00
2021-09-28 17:58:40 -04:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-09-01 11:36:21 -04:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-08-30 13:59:14 -07:00
2021-05-17 14:09:07 -07:00
2021-09-21 22:26:16 -05:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00
2021-08-30 13:59:14 -07:00
2021-05-17 14:09:07 -07:00
2021-05-17 14:09:07 -07:00
2021-10-13 13:54:11 -07:00
2021-10-13 13:54:11 -07:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-10-28 19:29:09 -05:00
2021-05-17 14:09:07 -07:00