Skip to content

Commit

Permalink
fix: Use warning instead of log in python wheel wrapper message
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakuz-db committed Nov 20, 2024
1 parent 6a036d1 commit 66bf5f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bundle/trampoline/python_dbr_warning.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}
Expand Down

0 comments on commit 66bf5f3

Please sign in to comment.