From 66bf5f35c17f7e8652778b4d1975ea496239c933 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Wed, 20 Nov 2024 11:48:52 +0100 Subject: [PATCH] fix: Use warning instead of log in python wheel wrapper message --- bundle/trampoline/python_dbr_warning.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundle/trampoline/python_dbr_warning.go b/bundle/trampoline/python_dbr_warning.go index e93bc32138..cf3e9aeb3b 100644 --- a/bundle/trampoline/python_dbr_warning.go +++ b/bundle/trampoline/python_dbr_warning.go @@ -8,7 +8,6 @@ import ( "github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle/config" "github.com/databricks/cli/bundle/libraries" - "github.com/databricks/cli/libs/cmdio" "github.com/databricks/cli/libs/diag" "github.com/databricks/cli/libs/log" "github.com/databricks/databricks-sdk-go" @@ -25,7 +24,7 @@ func WrapperWarning() bundle.Mutator { func (m *wrapperWarning) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics { if isPythonWheelWrapperOn(b) { if config.IsExplicitlyEnabled(b.Config.Presets.SourceLinkedDeployment) { - cmdio.LogString(ctx, "Python wheel notebook wrapper is not available when using source-linked deployment mode. You can disable this mode by setting 'presets.source_linked_deployment: false'") + return diag.Warningf("Python wheel notebook wrapper is not available when using source-linked deployment mode. You can disable this mode by setting 'presets.source_linked_deployment: false'") } return nil }