mirror of https://github.com/databricks/cli.git
fixes for tags
This commit is contained in:
parent
f667e127df
commit
9783b958b9
|
@ -168,8 +168,10 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
|
||||||
c.CustomTags = make(map[string]string)
|
c.CustomTags = make(map[string]string)
|
||||||
}
|
}
|
||||||
for _, tag := range tags {
|
for _, tag := range tags {
|
||||||
if c.CustomTags[tag.Key] == "" {
|
normalisedKey := b.Tagging.NormalizeKey(tag.Key)
|
||||||
c.CustomTags[tag.Key] = tag.Value
|
normalisedValue := b.Tagging.NormalizeValue(tag.Value)
|
||||||
|
if c.CustomTags[normalisedKey] == "" {
|
||||||
|
c.CustomTags[normalisedKey] = normalisedValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,6 @@ resources:
|
||||||
spark_version: "{{.spark_version}}"
|
spark_version: "{{.spark_version}}"
|
||||||
node_type_id: "{{.node_type_id}}"
|
node_type_id: "{{.node_type_id}}"
|
||||||
num_workers: 2
|
num_workers: 2
|
||||||
autoscale:
|
|
||||||
min_workers: 2
|
|
||||||
max_workers: 6
|
|
||||||
spark_conf:
|
spark_conf:
|
||||||
"spark.executor.memory": "2g"
|
"spark.executor.memory": "2g"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue