Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nextchanges/air/accelerator-pool-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Breaking: `compute.pool_id` is no longer accepted in AIR workload YAML; use `compute.accelerator_pool_id`. ([#7698](https://github.com/databricks/cli/pull/7698))
27 changes: 17 additions & 10 deletions acceptance/air/config-help/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ config.compute
GPU_1xRTX6000 - 1 accelerator per node

Fields:
num_accelerators (required) Total number of GPUs to allocate.
accelerator_type (required) Which accelerator to run on, e.g. GPU_1xA10.
num_accelerators (required) Total number of GPUs to allocate.
accelerator_type (required) Which accelerator to run on, e.g. GPU_1xA10.

Provisioned capacity (optional):
pool_id GPU pool to run on, by id.
priority_class Scheduling priority within the pool: BEST_EFFORT (lowest, preemptable) or NORMAL.
GPU Pools (optional):
accelerator_pool_id GPU Pool to run on, by ID.
priority_class Scheduling priority within the GPU Pool: NORMAL.

For details on a field, run "databricks air run -h config.compute.<field>".

Expand All @@ -131,16 +131,16 @@ config.mlflow_artifact_location
Type: string
Required: no

>>> [CLI] air run -h config.compute.pool_id
config.compute.pool_id
GPU pool to run on, by id. A GPU pool is a pre-provisioned accelerator reservation; contact your Databricks account team to provision one. Must be 1-255 characters. List available pools with 'databricks air pools list'.
>>> [CLI] air run -h config.compute.accelerator_pool_id
config.compute.accelerator_pool_id
GPU Pool to run on, by ID. Must be 1-255 characters. List available pools with 'databricks air pools list'.

Type: string
Required: no

>>> [CLI] air run -h config.compute.priority_class
config.compute.priority_class
Scheduling priority within the pool: BEST_EFFORT (lowest, preemptable) or NORMAL. Requires pool_id.
Scheduling priority within the GPU Pool: NORMAL. Requires accelerator_pool_id.

Type: string
Required: no
Expand Down Expand Up @@ -231,9 +231,16 @@ config.compute.num_accelerators
>>> [CLI] air run -h config.compute.acclerator_type
Error: unknown config field "config.compute.acclerator_type"; did you mean "accelerator_type"?

fields under "config.compute" are: accelerator_type, num_accelerators, pool_id, priority_class
fields under "config.compute" are: accelerator_pool_id, accelerator_type, num_accelerators, priority_class

=== free-form map keys are not schema fields

>>> [CLI] air run -h config.parameters.learning_rate
Error: "config.parameters" holds user-defined keys, so "learning_rate" is not part of the schema; see "config.parameters" instead

=== removed pool field is not in the schema

>>> [CLI] air run -h config.compute.pool_id
Error: unknown config field "config.compute.pool_id"; did you mean "accelerator_pool_id"?

fields under "config.compute" are: accelerator_pool_id, accelerator_type, num_accelerators, priority_class
5 changes: 4 additions & 1 deletion acceptance/air/config-help/script
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trace $CLI air run -h config.compute

title "new submission fields are documented"
trace $CLI air run -h config.mlflow_artifact_location
trace $CLI air run -h config.compute.pool_id
trace $CLI air run -h config.compute.accelerator_pool_id

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pool_id rejection, an invalid priority_class, and priority_class without a pool are only covered by unit tests. Could we add trace $CLI air run -h config.compute.pool_id here (after the rename hint above lands), so the migration path is pinned in acceptance output?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated

trace $CLI air run -h config.compute.priority_class
trace $CLI air run -h config.environment.dependencies
trace $CLI air run -h config.environment.version
Expand All @@ -39,3 +39,6 @@ trace $CLI air run -h config.compute.acclerator_type

title "free-form map keys are not schema fields"
trace $CLI air run -h config.parameters.learning_rate

title "removed pool field is not in the schema"
trace $CLI air run -h config.compute.pool_id
2 changes: 1 addition & 1 deletion acceptance/air/convert-to-dabs/train.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ command: |
compute:
accelerator_type: GPU_1xA10
num_accelerators: 1
pool_id: capacity-1
accelerator_pool_id: capacity-1
priority_class: NORMAL
mlflow_artifact_location: dbfs:/Volumes/main/default/artifacts
environment:
Expand Down
12 changes: 6 additions & 6 deletions acceptance/air/help/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Package and deploy:
images Push container images for custom environments

Provisioned capacity:
pools View provisioned GPU pools, if any (not required to run)
pools View provisioned GPU Pools, if any (not required to run)

Flags:
-h, --help[=true|false] help for air
Expand Down Expand Up @@ -107,19 +107,19 @@ Global Flags:
=== pools help

>>> [CLI] air pools --help
View GPU pools provisioned for your workspace.
View GPU Pools provisioned for your workspace.

A GPU pool is dedicated accelerator capacity that your Databricks account team
A GPU Pool is dedicated accelerator capacity that your Databricks account team
provisions. Pools are optional: a run uses one only when its YAML sets
compute.pool_id.
compute.accelerator_pool_id.

Usage:
databricks air pools [flags]
databricks air pools [command]

Available Commands:
get Show a GPU pool and its accelerator usage
list List the GPU pools available to the current workspace
get Show a GPU Pool and its accelerator usage
list List the GPU Pools available to the current workspace

Flags:
-h, --help[=true|false] help for pools
Expand Down
6 changes: 3 additions & 3 deletions acceptance/air/run-submit-deps/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Stream logs after submission using:

>>> print_requests.py //api/2.0/workspace-files/import-file --oneline --sort --unique --keep
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/command.sh", "q": {"overwrite": "true"}, "raw_body": "python train.py"}
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/training_config.yaml", "q": {"overwrite": "true"}, "raw_body": "experiment_name: deps-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 1\n pool_id: capacity-123\nenvironment:\n version: 5\n dependencies:\n - numpy\n - torch==2.3.0\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n"}
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/training_config.yaml", "q": {"overwrite": "true"}, "raw_body": "experiment_name: deps-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 1\n accelerator_pool_id: capacity-123\nenvironment:\n version: 5\n dependencies:\n - numpy\n - torch==2.3.0\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n"}

=== inline deps, artifact location, and capacity id reach the submit payload

Expand Down Expand Up @@ -45,8 +45,8 @@ Stream logs after submission using:
"command_path": "/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/command.sh",
"compute": {
"accelerator_count": 1,
"accelerator_type": "GPU_1xH100",
"provisioned_capacity_id": "capacity-123"
"accelerator_pool_id": "capacity-123",
"accelerator_type": "GPU_1xH100"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion acceptance/air/run-submit-deps/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ command: python train.py
compute:
accelerator_type: GPU_1xH100
num_accelerators: 1
pool_id: capacity-123
accelerator_pool_id: capacity-123
environment:
version: 5
dependencies:
Expand Down
7 changes: 7 additions & 0 deletions acceptance/air/run/invalid-priority.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
experiment_name: smoke-test
command: python train.py
compute:
accelerator_type: GPU_1xH100
num_accelerators: 1
accelerator_pool_id: capacity-1
priority_class: HIGH
24 changes: 24 additions & 0 deletions acceptance/air/run/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,27 @@ Exit code: 1
Error: the AIR commands have moved out of experimental; use "databricks air" instead

Exit code: 1

=== removed pool field is rejected

>>> [CLI] air run -f removed-pool.yaml --dry-run
Error: invalid config removed-pool.yaml: line 6: unknown field "compute.pool_id"; did you mean "accelerator_pool_id"? Run "databricks air run -h config.compute" for the list of fields

Tip: use the --debug flag to see more details and a trace of this error:
databricks --debug air run …

=== unsupported priority is rejected

>>> [CLI] air run -f invalid-priority.yaml --dry-run
Error: compute.priority_class: invalid priority_class "HIGH": valid values are: NORMAL

Tip: use the --debug flag to see more details and a trace of this error:
databricks --debug air run …

=== priority without a pool is rejected

>>> [CLI] air run -f priority-without-pool.yaml --dry-run
Error: compute.priority_class requires compute.accelerator_pool_id — priority applies only within a GPU Pool

Tip: use the --debug flag to see more details and a trace of this error:
databricks --debug air run …
6 changes: 6 additions & 0 deletions acceptance/air/run/priority-without-pool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
experiment_name: smoke-test
command: python train.py
compute:
accelerator_type: GPU_1xH100
num_accelerators: 1
priority_class: NORMAL
6 changes: 6 additions & 0 deletions acceptance/air/run/removed-pool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
experiment_name: smoke-test
command: python train.py
compute:
accelerator_type: GPU_1xH100
num_accelerators: 1
pool_id: capacity-1
9 changes: 9 additions & 0 deletions acceptance/air/run/script
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ errcode trace $CLI air run --dry-run

title "experimental path directs users to the top-level command"
errcode trace $CLI experimental air run -f valid.yaml --dry-run

title "removed pool field is rejected"
musterr trace $CLI air run -f removed-pool.yaml --dry-run

title "unsupported priority is rejected"
musterr trace $CLI air run -f invalid-priority.yaml --dry-run

title "priority without a pool is rejected"
musterr trace $CLI air run -f priority-without-pool.yaml --dry-run
33 changes: 13 additions & 20 deletions cmd/air/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,9 @@ const (
priorityClassNormal priorityClass = "NORMAL"
)

// priorityClasses lists every valid value, low to high. Used for validation
// error messages.
var priorityClasses = []priorityClass{priorityClassBestEffort, priorityClassNormal}

func validPriorityClassesHint() string {
names := make([]string, len(priorityClasses))
for i, p := range priorityClasses {
names[i] = string(p)
}
return "valid values are: " + strings.Join(names, ", ")
// BEST_EFFORT remains accepted for compatibility with existing YAML.
return "valid values are: " + string(priorityClassNormal)
}

// parsePriorityClass normalizes a YAML priority_class to the enum's contract
Expand Down Expand Up @@ -80,10 +73,10 @@ func gpusPerNode(g gpuType) (int, error) {
// computeConfig is the `compute` block of the run YAML: which accelerators to
// use and how many.
type computeConfig struct {
NumAccelerators int `yaml:"num_accelerators" help:"Total number of GPUs to allocate. Must be a positive multiple of the accelerator type's per-node GPU count. See Docs below for GPUs per node." required:"yes" docs:"/machine-learning/ai-runtime/connecting/cli/yaml-config#accelerator-types"`
AcceleratorType string `yaml:"accelerator_type" help:"Which accelerator to run on, e.g. GPU_1xA10. Matched case-sensitively." required:"yes" docs:"/machine-learning/ai-runtime/connecting/cli/yaml-config#accelerator-types"`
PoolID *string `yaml:"pool_id" help:"GPU pool to run on, by id. A GPU pool is a pre-provisioned accelerator reservation; contact your Databricks account team to provision one. Must be 1-255 characters. List available pools with 'databricks air pools list'." group:"Provisioned capacity (optional)"`
PriorityClass *string `yaml:"priority_class" help:"Scheduling priority within the pool: BEST_EFFORT (lowest, preemptable) or NORMAL. Requires pool_id." group:"Provisioned capacity (optional)"`
NumAccelerators int `yaml:"num_accelerators" help:"Total number of GPUs to allocate. Must be a positive multiple of the accelerator type's per-node GPU count. See Docs below for GPUs per node." required:"yes" docs:"/machine-learning/ai-runtime/connecting/cli/yaml-config#accelerator-types"`
AcceleratorType string `yaml:"accelerator_type" help:"Which accelerator to run on, e.g. GPU_1xA10. Matched case-sensitively." required:"yes" docs:"/machine-learning/ai-runtime/connecting/cli/yaml-config#accelerator-types"`
AcceleratorPoolID *string `yaml:"accelerator_pool_id" help:"GPU Pool to run on, by ID. Must be 1-255 characters. List available pools with 'databricks air pools list'." group:"GPU Pools (optional)"`
PriorityClass *string `yaml:"priority_class" help:"Scheduling priority within the GPU Pool: NORMAL. Requires accelerator_pool_id." group:"GPU Pools (optional)"`
}

// validate checks the compute block against the backend's constraints.
Expand All @@ -105,15 +98,15 @@ func (c *computeConfig) validate() error {
return fmt.Errorf("compute.num_accelerators for %s must be a multiple of %d, got %d", c.AcceleratorType, perNode, c.NumAccelerators)
}

if c.PoolID != nil {
v := strings.TrimSpace(*c.PoolID)
if c.AcceleratorPoolID != nil {
v := strings.TrimSpace(*c.AcceleratorPoolID)
if v == "" {
return errors.New("compute.pool_id cannot be empty")
return errors.New("compute.accelerator_pool_id cannot be empty")
}
if len(v) > 255 {
return fmt.Errorf("compute.pool_id must be 255 characters or less, got %d", len(v))
return fmt.Errorf("compute.accelerator_pool_id must be 255 characters or less, got %d", len(v))
}
*c.PoolID = v
*c.AcceleratorPoolID = v
}

if c.PriorityClass != nil {
Expand All @@ -123,8 +116,8 @@ func (c *computeConfig) validate() error {
}
// A priority class only ranks pending work within a pool, so it requires
// one.
if c.PoolID == nil {
return errors.New("compute.priority_class requires compute.pool_id — priority applies only within a GPU pool")
if c.AcceleratorPoolID == nil {
return errors.New("compute.priority_class requires compute.accelerator_pool_id — priority applies only within a GPU Pool")
}
*c.PriorityClass = string(p)
}
Expand Down
53 changes: 44 additions & 9 deletions cmd/air/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,18 @@ func TestParsePriorityClass(t *testing.T) {
assert.Equal(t, priorityClassNormal, got)
}

for _, in := range []string{"urgent", "", "high", "CRITICAL"} {
for _, in := range []string{"urgent", "", "HIGH", "high", "CRITICAL"} {
_, err := parsePriorityClass(in)
require.Error(t, err)
assert.Contains(t, err.Error(), "valid values are")
assert.ErrorContains(t, err, "valid values are: NORMAL")
assert.NotContains(t, err.Error(), "BEST_EFFORT")
}
}

func TestComputeConfigValidateNormalizesPriorityClass(t *testing.T) {
// A lower-case value is upper-cased in place so the submitted payload carries
// the enum's contract value.
cfg := computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new("cap"), PriorityClass: new("best_effort")}
cfg := computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new("cap"), PriorityClass: new("best_effort")}
require.NoError(t, cfg.validate())
assert.Equal(t, "BEST_EFFORT", *cfg.PriorityClass)
}
Expand All @@ -99,9 +100,9 @@ func TestComputeConfigValidate(t *testing.T) {
{"single node", computeConfig{NumAccelerators: 8, AcceleratorType: "GPU_8xH100"}, ""},
{"multiple nodes", computeConfig{NumAccelerators: 16, AcceleratorType: "GPU_8xH100"}, ""},
{"single-gpu partitions", computeConfig{NumAccelerators: 3, AcceleratorType: "GPU_1xH100"}, ""},
{"pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new(" capacity ")}, ""},
{"empty pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new(" ")}, "cannot be empty"},
{"long pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new(strings.Repeat("a", 256))}, "255 characters or less"},
{"pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new(" capacity ")}, ""},
{"empty pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new(" ")}, "cannot be empty"},
{"long pool id", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new(strings.Repeat("a", 256))}, "255 characters or less"},
{"unknown type", computeConfig{NumAccelerators: 8, AcceleratorType: "b200"}, "accelerator_type"},
{"legacy type rejected", computeConfig{NumAccelerators: 8, AcceleratorType: "h100_80gb"}, "accelerator_type"},
{"non-positive count", computeConfig{NumAccelerators: 0, AcceleratorType: "GPU_1xH100"}, "must be positive"},
Expand All @@ -117,9 +118,9 @@ func TestComputeConfigValidate(t *testing.T) {
{"B300 count twelve", computeConfig{NumAccelerators: 12, AcceleratorType: "GPU_8xB300"}, "multiple of 8"},
{"B300 zero", computeConfig{NumAccelerators: 0, AcceleratorType: "GPU_8xB300"}, "must be positive"},
{"B300 negative", computeConfig{NumAccelerators: -8, AcceleratorType: "GPU_8xB300"}, "must be positive"},
{"priority class", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new("cap"), PriorityClass: new("normal")}, ""},
{"priority class requires reservation", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PriorityClass: new("NORMAL")}, "requires compute.pool_id"},
{"invalid priority class", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PoolID: new("cap"), PriorityClass: new("urgent")}, "invalid priority_class"},
{"priority class", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new("cap"), PriorityClass: new("normal")}, ""},
{"priority class requires reservation", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", PriorityClass: new("NORMAL")}, "requires compute.accelerator_pool_id"},
{"invalid priority class", computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new("cap"), PriorityClass: new("urgent")}, "invalid priority_class"},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand All @@ -133,3 +134,37 @@ func TestComputeConfigValidate(t *testing.T) {
})
}
}

func TestComputeConfigAcceleratorPool(t *testing.T) {
for _, tc := range []struct {
name string
poolID *string
want *string
wantErr string
}{
{name: "omitted"},
{name: "explicit", poolID: new("pool-1"), want: new("pool-1")},
{name: "trimmed", poolID: new(" pool-1 "), want: new("pool-1")},
{name: "empty", poolID: new(""), wantErr: "compute.accelerator_pool_id cannot be empty"},
{name: "blank", poolID: new(" "), wantErr: "compute.accelerator_pool_id cannot be empty"},
{name: "maximum length", poolID: new(strings.Repeat("x", 255)), want: new(strings.Repeat("x", 255))},
{name: "too long", poolID: new(strings.Repeat("x", 256)), wantErr: "compute.accelerator_pool_id must be 255 characters or less"},
} {
t.Run(tc.name, func(t *testing.T) {
cfg := computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: tc.poolID}
err := cfg.validate()
if tc.wantErr != "" {
require.ErrorContains(t, err, tc.wantErr)
return
}
require.NoError(t, err)
assert.Equal(t, tc.want, cfg.AcceleratorPoolID)
})
}
}

func TestComputeConfigPriorityWithAcceleratorPool(t *testing.T) {
cfg := computeConfig{NumAccelerators: 1, AcceleratorType: "GPU_1xH100", AcceleratorPoolID: new("pool-1"), PriorityClass: new("normal")}
require.NoError(t, cfg.validate())
assert.Equal(t, "NORMAL", *cfg.PriorityClass)
}
5 changes: 3 additions & 2 deletions cmd/air/convert_to_dabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,9 @@ func buildBundleValue(ctx context.Context, cfg *runConfig, configPath, codeSourc
"accelerator_type": nv(cfg.Compute.AcceleratorType, 1),
"accelerator_count": nv(cfg.Compute.NumAccelerators, 2),
}
if cfg.Compute.PoolID != nil {
compute["provisioned_capacity_id"] = nv(*cfg.Compute.PoolID, 3)
// Bundles still use the legacy field supported by their current schema.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to the HIGH question: priority_class passes straight through into the bundle's ai_runtime_task (line 338), so with HIGH the generated bundle YAML would carry a value the bundle schema enum rejects. The DABs test only covers NORMAL (convert_to_dabs_test.go:197-200). Could we add a HIGH case, or note the gap if the bundle schema is expected to change alongside?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I'll add a test

if poolID := cfg.Compute.AcceleratorPoolID; poolID != nil {
compute["provisioned_capacity_id"] = nv(*poolID, 3)
}
deployment := map[string]dyn.Value{
"command_path": nv(localBundlePath(path.Join(generatedArtifactsDir, commandScriptName)), 1),
Expand Down
4 changes: 2 additions & 2 deletions cmd/air/convert_to_dabs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ command: python train.py
compute:
accelerator_type: GPU_1xH100
num_accelerators: 1
pool_id: capacity-1
accelerator_pool_id: capacity-1
max_retries: 2
timeout_minutes: 30
mlflow_run_name: run-42
Expand Down Expand Up @@ -203,7 +203,7 @@ func TestConvertToDabsPreservesPoolPriorityAndUnityCatalogImage(t *testing.T) {
cfg := minimalConfig
var computeOptions string
if tc.poolID != "" {
computeOptions += " pool_id: " + tc.poolID + "\n"
computeOptions += " accelerator_pool_id: " + tc.poolID + "\n"
}
if tc.priorityClass != "" {
computeOptions += " priority_class: " + tc.priorityClass + "\n"
Expand Down
Loading
Loading