We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4e51f20 commit47036e8Copy full SHA for 47036e8
coderd/workspacebuilds.go
@@ -387,10 +387,12 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
387
})
388
return
389
}
390
-err=provisionerjobs.PostJob(api.Pubsub,*provisionerJob)
391
-iferr!=nil {
392
-// Client probably doesn't care about this error, so just log it.
393
-api.Logger.Error(ctx,"failed to post provisioner job to pubsub",slog.Error(err))
+
+ifprovisionerJob!=nil {
+iferr:=provisionerjobs.PostJob(api.Pubsub,*provisionerJob);err!=nil {
+// Client probably doesn't care about this error, so just log it.
394
+api.Logger.Error(ctx,"failed to post provisioner job to pubsub",slog.Error(err))
395
+}
396
397
398
varmatchedProvisioners codersdk.MatchedProvisioners