Skip to content

Commit b23d7e5

Browse files
minor fixes
1 parent 543a735 commit b23d7e5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

provider/workspace_preset.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ type WorkspacePrebuild struct {
3434
// for utilities that parse our terraform output using this type. To remain compatible
3535
// with those cases, we use a slice here.
3636
ExpirationPolicy []ExpirationPolicy `mapstructure:"expiration_policy"`
37-
Autoscaling []Autoscaling `json:"autoscaling,omitempty"`
37+
Autoscaling []Autoscaling `mapstructure:"autoscaling"`
3838
}
3939

4040
type ExpirationPolicy struct {
4141
TTL int `mapstructure:"ttl"`
4242
}
4343

4444
type Autoscaling struct {
45-
Timezone string `json:"timezone"`
46-
Schedule []Schedule `json:"schedule"`
45+
Timezone string `mapstructure:"timezone"`
46+
Schedule []Schedule `mapstructure:"schedule"`
4747
}
4848

4949
type Schedule struct {
50-
Cron string `json:"cron"`
51-
Instances int `json:"instances"`
50+
Cron string `mapstructure:"cron"`
51+
Instances int `mapstructure:"instances"`
5252
}
5353

5454
func workspacePresetDataSource() *schema.Resource {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy