Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb23d7e5

Browse files
minor fixes
1 parent543a735 commitb23d7e5

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
typeExpirationPolicystruct {
4141
TTLint`mapstructure:"ttl"`
4242
}
4343

4444
typeAutoscalingstruct {
45-
Timezonestring`json:"timezone"`
46-
Schedule []Schedule`json:"schedule"`
45+
Timezonestring`mapstructure:"timezone"`
46+
Schedule []Schedule`mapstructure:"schedule"`
4747
}
4848

4949
typeSchedulestruct {
50-
Cronstring`json:"cron"`
51-
Instancesint`json:"instances"`
50+
Cronstring`mapstructure:"cron"`
51+
Instancesint`mapstructure:"instances"`
5252
}
5353

5454
funcworkspacePresetDataSource()*schema.Resource {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp