We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60beaea commit 1c1ea40Copy full SHA for 1c1ea40
provider/workspace_preset.go
@@ -21,7 +21,12 @@ type WorkspacePreset struct {
21
}
22
23
type WorkspacePrebuild struct {
24
- Instances int `mapstructure:"instances"`
+ Instances int `mapstructure:"instances"`
25
+ // There should always be only one cache_invalidation block, but Terraform's type system
26
+ // still parses them as a slice, so we need to handle it as such. We could use
27
+ // an anonymous type and rd.Get to avoid a slice here, but that would not be possible
28
+ // for utilities that parse our terraform output using this type. To remain compatible
29
+ // with those cases, we use a slice here.
30
CacheInvalidation []CacheInvalidation `mapstructure:"cache_invalidation"`
31
32
0 commit comments