mirror of https://github.com/databricks/cli.git
Don't double-index
This commit is contained in:
parent
379d263907
commit
3201821a62
|
@ -213,8 +213,12 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dashboards: Prefix
|
// Dashboards: Prefix
|
||||||
for i := range r.Dashboards {
|
for key, dashboard := range r.Dashboards {
|
||||||
r.Dashboards[i].DisplayName = prefix + r.Dashboards[i].DisplayName
|
if dashboard == nil {
|
||||||
|
diags = diags.Extend(diag.Errorf("dashboard %s s is not defined", key))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
dashboard.DisplayName = prefix + dashboard.DisplayName
|
||||||
}
|
}
|
||||||
|
|
||||||
return diags
|
return diags
|
||||||
|
|
Loading…
Reference in New Issue