File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -228,20 +228,17 @@ func (r *RootCmd) provisionerDaemonStart() *serpent.Command {
228
228
connector := provisionerd.LocalProvisioners {
229
229
string (database .ProvisionerTypeTerraform ): proto .NewDRPCProvisionerClient (terraformClient ),
230
230
}
231
- req := codersdk.ServeProvisionerDaemonRequest {
232
- ID : uuid .New (),
233
- Name : name ,
234
- Provisioners : []codersdk.ProvisionerType {
235
- codersdk .ProvisionerTypeTerraform ,
236
- },
237
- Tags : tags ,
238
- PreSharedKey : preSharedKey ,
239
- }
240
- if org .ID != uuid .Nil {
241
- req .Organization = org .ID
242
- }
243
231
srv := provisionerd .New (func (ctx context.Context ) (provisionerdproto.DRPCProvisionerDaemonClient , error ) {
244
- return client .ServeProvisionerDaemon (ctx , req )
232
+ return client .ServeProvisionerDaemon (ctx , codersdk.ServeProvisionerDaemonRequest {
233
+ ID : uuid .New (),
234
+ Name : name ,
235
+ Provisioners : []codersdk.ProvisionerType {
236
+ codersdk .ProvisionerTypeTerraform ,
237
+ },
238
+ Tags : tags ,
239
+ PreSharedKey : preSharedKey ,
240
+ Organization : org .ID ,
241
+ })
245
242
}, & provisionerd.Options {
246
243
Logger : logger ,
247
244
UpdateInterval : 500 * time .Millisecond ,
You can’t perform that action at this time.
0 commit comments