Skip to content

Commit

Permalink
Use --instance_nums to pass instance number list
Browse files Browse the repository at this point in the history
To create an instance number list from orchestrator to cvd need to
use the argument named instance_nums to pass intended numbers.
  • Loading branch information
k311093 committed Mar 22, 2024
1 parent 43f99aa commit ec2e2de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func (h *startCVDHandler) Start(p startCVDParams) error {
// Use legacy `--base_instance_num` when multi-vd is not requested.
args = append(args, fmt.Sprintf("--base_instance_num=%d", p.InstanceNumbers[0]))
} else {
args = append(args, fmt.Sprintf("--num_instances=%s", strings.Join(SliceItoa(p.InstanceNumbers), ",")))
args = append(args, fmt.Sprintf("--instance_nums=%s", strings.Join(SliceItoa(p.InstanceNumbers), ",")))
}
args = append(args, fmt.Sprintf("--system_image_dir=%s", p.MainArtifactsDir))
if len(p.InstanceNumbers) > 1 {
Expand Down

0 comments on commit ec2e2de

Please sign in to comment.