Skip to content

Commit 53bb647

Browse files
committed
fix lint
1 parent dfa21ff commit 53bb647

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bundle/terranova/tnresources/job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func makeCreateJob(config jobs.JobSettings) (jobs.CreateJob, error) {
9898
Tasks: config.Tasks,
9999
TimeoutSeconds: config.TimeoutSeconds,
100100
Trigger: config.Trigger,
101+
UsagePolicyId: config.UsagePolicyId,
101102
WebhookNotifications: config.WebhookNotifications,
102103

103104
ForceSendFields: filterFields[jobs.CreateJob](config.ForceSendFields),

libs/testserver/server.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/gorilla/mux"
1515

1616
"github.com/databricks/cli/internal/testutil"
17-
"github.com/databricks/databricks-sdk-go/apierr"
1817
)
1918

2019
type Server struct {
@@ -213,8 +212,8 @@ Response.Body = '<response body here>'
213212
w.Header().Set("Content-Type", "application/json")
214213
w.WriteHeader(http.StatusNotImplemented)
215214

216-
resp := apierr.APIError{
217-
Message: "No stub found for pattern: " + pattern,
215+
resp := map[string]string{
216+
"message": "No stub found for pattern: " + pattern,
218217
}
219218

220219
respBytes, err := json.Marshal(resp)

0 commit comments

Comments
 (0)