mirror of https://github.com/databricks/cli.git
Always set no_compute to true for apps
This commit is contained in:
parent
72e677d0ac
commit
833a3614a6
|
@ -38,6 +38,12 @@ func (appConverter) Convert(ctx context.Context, key string, vin dyn.Value, out
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We always set no_compute to true as it allows DABs not to wait for app compute to be started when app is created.
|
||||||
|
vout, err = dyn.Set(vout, "no_compute", dyn.V(true))
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// Add the converted resource to the output.
|
// Add the converted resource to the output.
|
||||||
out.App[key] = vout.AsAny()
|
out.App[key] = vout.AsAny()
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ func TestConvertApp(t *testing.T) {
|
||||||
assert.Equal(t, map[string]any{
|
assert.Equal(t, map[string]any{
|
||||||
"description": "app description",
|
"description": "app description",
|
||||||
"name": "app_id",
|
"name": "app_id",
|
||||||
|
"no_compute": true,
|
||||||
"resources": []any{
|
"resources": []any{
|
||||||
map[string]any{
|
map[string]any{
|
||||||
"name": "job1",
|
"name": "job1",
|
||||||
|
|
Loading…
Reference in New Issue