Skip to content

Commit f88161b

Browse files
committed
pr comments
1 parent af7428a commit f88161b

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

enterprise/cli/provisionerdaemons.go

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,17 @@ func (r *RootCmd) provisionerDaemonStart() *serpent.Command {
228228
connector := provisionerd.LocalProvisioners{
229229
string(database.ProvisionerTypeTerraform): proto.NewDRPCProvisionerClient(terraformClient),
230230
}
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-
}
243231
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+
})
245242
}, &provisionerd.Options{
246243
Logger: logger,
247244
UpdateInterval: 500 * time.Millisecond,

0 commit comments

Comments
 (0)