Skip to content

Commit 68bcb2f

Browse files
refactor: minor refactor after renaming
1 parent 30979f0 commit 68bcb2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/data-sources/workspace_preset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Required:
7171
Required:
7272

7373
- `schedule` (Block List, Min: 1) One or more schedule blocks that define when to scale the number of prebuild instances. (see [below for nested schema](#nestedblock--prebuilds--scheduling--schedule))
74-
- `timezone` (String) The timezone to use for the scheduling schedule (e.g., "UTC", "America/New_York").
74+
- `timezone` (String) The timezone to use for the prebuild schedules (e.g., "UTC", "America/New_York").
7575
Timezone must be a valid timezone in the IANA timezone database.
7676
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a complete list of valid timezone identifiers and https://www.iana.org/time-zones for the official IANA timezone database.
7777

provider/workspace_preset.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func workspacePresetDataSource() *schema.Resource {
152152
Schema: map[string]*schema.Schema{
153153
"timezone": {
154154
Type: schema.TypeString,
155-
Description: `The timezone to use for the scheduling schedule (e.g., "UTC", "America/New_York").
155+
Description: `The timezone to use for the prebuild schedules (e.g., "UTC", "America/New_York").
156156
Timezone must be a valid timezone in the IANA timezone database.
157157
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a complete list of valid timezone identifiers and https://www.iana.org/time-zones for the official IANA timezone database.`,
158158
Required: true,
@@ -213,7 +213,7 @@ See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a complete
213213
}
214214

215215
// validatePrebuildsCronSpec ensures that the minute field is set to *.
216-
// This is required because scheduling schedules represent continuous time ranges,
216+
// This is required because prebuild schedules represent continuous time ranges,
217217
// and we want the schedule to cover entire hours rather than specific minute intervals.
218218
func validatePrebuildsCronSpec(spec string) error {
219219
parts := strings.Fields(spec)
@@ -227,7 +227,7 @@ func validatePrebuildsCronSpec(spec string) error {
227227
return nil
228228
}
229229

230-
// validateSchedules checks if any of the configured scheduling schedules overlap with each other.
230+
// validateSchedules checks if any of the configured prebuild schedules overlap with each other.
231231
// It returns an error if overlaps are found, nil otherwise.
232232
func validateSchedules(rd *schema.ResourceData) error {
233233
// TypeSet from schema definition

0 commit comments

Comments
 (0)