File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,21 @@ type WorkspacePrebuild struct {
34
34
// for utilities that parse our terraform output using this type. To remain compatible
35
35
// with those cases, we use a slice here.
36
36
ExpirationPolicy []ExpirationPolicy `mapstructure:"expiration_policy"`
37
- Autoscaling []Autoscaling `json :"autoscaling,omitempty "`
37
+ Autoscaling []Autoscaling `mapstructure :"autoscaling"`
38
38
}
39
39
40
40
type ExpirationPolicy struct {
41
41
TTL int `mapstructure:"ttl"`
42
42
}
43
43
44
44
type Autoscaling struct {
45
- Timezone string `json :"timezone"`
46
- Schedule []Schedule `json :"schedule"`
45
+ Timezone string `mapstructure :"timezone"`
46
+ Schedule []Schedule `mapstructure :"schedule"`
47
47
}
48
48
49
49
type Schedule struct {
50
- Cron string `json :"cron"`
51
- Instances int `json :"instances"`
50
+ Cron string `mapstructure :"cron"`
51
+ Instances int `mapstructure :"instances"`
52
52
}
53
53
54
54
func workspacePresetDataSource () * schema.Resource {
You can’t perform that action at this time.
0 commit comments