This commit is contained in:
Shreyas Goenka 2025-03-03 19:58:14 +01:00
parent 007a714750
commit 0c9fbf7b23
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 3 additions and 3 deletions

View File

@ -13,13 +13,13 @@ type defineDefaultTarget struct {
name string
}
const DefaultTargetName = "default"
const DefaultTargetPlaceholder = "default"
// DefineDefaultTarget adds a target named "default"
// to the configuration if none have been defined.
func DefineDefaultTarget() bundle.Mutator {
return &defineDefaultTarget{
name: DefaultTargetName,
name: DefaultTargetPlaceholder,
}
}

View File

@ -54,7 +54,7 @@ Example usage:
// target is the default target, we don't need to pass it explicitly since
// the CLI will use the default target by default.
// This is only useful for when the Databricks CLI is the child command.
if b.Config.Bundle.Target != mutator.DefaultTargetName {
if b.Config.Bundle.Target != mutator.DefaultTargetPlaceholder {
env = append(env, "DATABRICKS_BUNDLE_TARGET="+b.Config.Bundle.Target)
}