@@ -257,7 +257,7 @@ func (server *Server) AcquireJob(ctx context.Context, _ *proto.Empty) (*proto.Ac
257
257
258
258
protoJob .Type = & proto.AcquiredJob_TemplateImport_ {
259
259
TemplateImport : & proto.AcquiredJob_TemplateImport {
260
- VariableValues : convertVariableValues (input .VariableValues ),
260
+ UserVariableValues : convertVariableValues (input .UserVariableValues ),
261
261
Metadata : & sdkproto.Provision_Metadata {
262
262
CoderUrl : server .AccessURL .String (),
263
263
},
@@ -402,7 +402,7 @@ func (server *Server) UpdateJob(ctx context.Context, request *proto.UpdateJobReq
402
402
server .Logger .Debug (ctx , "insert template variable" , slog .F ("template_version_id" , templateVersion .ID ), slog .F ("template_variable" , templateVariable ))
403
403
404
404
var value = templateVariable .DefaultValue
405
- for _ , v := range request .VariableValues {
405
+ for _ , v := range request .UserVariableValues {
406
406
if v .Name == templateVariable .Name {
407
407
value = v .Value
408
408
break
@@ -1259,8 +1259,8 @@ func auditActionFromTransition(transition database.WorkspaceTransition) database
1259
1259
}
1260
1260
1261
1261
type TemplateVersionImportJob struct {
1262
- TemplateVersionID uuid.UUID `json:"template_version_id"`
1263
- VariableValues []codersdk.VariableValue `json:"variable_values"`
1262
+ TemplateVersionID uuid.UUID `json:"template_version_id"`
1263
+ UserVariableValues []codersdk.VariableValue `json:"variable_values"`
1264
1264
}
1265
1265
1266
1266
// WorkspaceProvisionJob is the payload for the "workspace_provision" job type.
0 commit comments