Skip to content

Commit 45b395e

Browse files
committed
Rename proto to TimeoutSeconds
1 parent 8810326 commit 45b395e

File tree

4 files changed

+212
-213
lines changed

4 files changed

+212
-213
lines changed

coderd/provisionerdserver/provisionerdserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ func InsertWorkspaceResource(ctx context.Context, db database.Store, jobID uuid.
12991299
scriptLogPaths = append(scriptLogPaths, script.LogPath)
13001300
scriptSources = append(scriptSources, script.Script)
13011301
scriptCron = append(scriptCron, script.Cron)
1302-
scriptTimeout = append(scriptTimeout, script.Timeout)
1302+
scriptTimeout = append(scriptTimeout, script.TimeoutSeconds)
13031303
scriptStartBlocksLogin = append(scriptStartBlocksLogin, script.StartBlocksLogin)
13041304
scriptRunOnStart = append(scriptRunOnStart, script.RunOnStart)
13051305
scriptRunOnStop = append(scriptRunOnStop, script.RunOnStop)

provisioner/terraform/resources.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
238238
DisplayName: "Startup Script",
239239
Script: attrs.StartupScript,
240240
StartBlocksLogin: startupScriptBehavior == string(codersdk.WorkspaceAgentStartupScriptBehaviorBlocking),
241-
Timeout: attrs.StartupScriptTimeoutSeconds,
242241
RunOnStart: true,
243242
})
244243
}
@@ -247,7 +246,6 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
247246
LogPath: "coder-shutdown-script.log",
248247
DisplayName: "Shutdown Script",
249248
Script: attrs.ShutdownScript,
250-
Timeout: attrs.ShutdownScriptTimeoutSeconds,
251249
RunOnStop: true,
252250
})
253251
}
@@ -456,7 +454,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
456454
StartBlocksLogin: attrs.StartBlocksLogin,
457455
RunOnStart: attrs.RunOnStart,
458456
RunOnStop: attrs.RunOnStop,
459-
Timeout: attrs.TimeoutSeconds,
457+
TimeoutSeconds: attrs.TimeoutSeconds,
460458
})
461459
}
462460
}

0 commit comments

Comments
 (0)