Skip to content

Commit 749da85

Browse files
committed
Use the correct flag for cvd display screenshot
It's --display instead of --display_number Bug: b/438557268
1 parent 6196f77 commit 749da85

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/host_orchestrator/orchestrator/cvd

1 file changed

+1
-1
lines changed

frontend/src/host_orchestrator/orchestrator/cvd/cvd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func (i *Instance) Screenshot(displayNumber int, path string) error {
408408
args := i.selectorArgs()
409409
args = append(args, "display")
410410
args = append(args, "screenshot")
411-
args = append(args, fmt.Sprintf("--display_number=%d", displayNumber))
411+
args = append(args, fmt.Sprintf("--display=%d", displayNumber))
412412
args = append(args, "--screenshot_path="+path)
413413
_, err := i.cli.exec(CVDBin, args...)
414414
return err

0 commit comments

Comments
 (0)