From 2f853e21ae1308789cae69f19be877e09c1dc0b7 Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Thu, 21 Nov 2024 17:33:04 +0100 Subject: [PATCH] lint fixes --- bundle/deploy/apps/deploy.go | 3 --- bundle/deploy/terraform/tfdyn/convert_app.go | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bundle/deploy/apps/deploy.go b/bundle/deploy/apps/deploy.go index fa992a76..ff4cfa51 100644 --- a/bundle/deploy/apps/deploy.go +++ b/bundle/deploy/apps/deploy.go @@ -6,7 +6,6 @@ import ( "fmt" "path" "path/filepath" - "time" "github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle/config/resources" @@ -20,8 +19,6 @@ import ( "gopkg.in/yaml.v3" ) -const deployTimeout = 20 * time.Minute - type appsDeploy struct { filerFactory deploy.FilerFactory } diff --git a/bundle/deploy/terraform/tfdyn/convert_app.go b/bundle/deploy/terraform/tfdyn/convert_app.go index 1a03d23e..621dc4e4 100644 --- a/bundle/deploy/terraform/tfdyn/convert_app.go +++ b/bundle/deploy/terraform/tfdyn/convert_app.go @@ -33,6 +33,10 @@ func (appConverter) Convert(ctx context.Context, key string, vin dyn.Value, out "resources": "resource", }) + if err != nil { + return err + } + // Add the converted resource to the output. out.App[key] = vout.AsAny()