aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/starnix/starnix.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vm/starnix/starnix.go b/vm/starnix/starnix.go
index 9b478735d..665b13321 100644
--- a/vm/starnix/starnix.go
+++ b/vm/starnix/starnix.go
@@ -320,13 +320,18 @@ func (inst *instance) connect() error {
if inst.debug {
log.Logf(1, "instance %s: attempting to connect to starnix container over ssh", inst.name)
}
+ // Even though the formatting option is called `addresses`, it is guaranteed
+ // to return at most 1 address per target.
address, err := inst.runFfx(
30*time.Second,
true,
"--target",
inst.name,
"target",
- "get-ssh-address")
+ "list",
+ "--format",
+ "addresses",
+ )
if err != nil {
return err
}