aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorLaura Peskin <pesk@google.com>2025-08-28 15:21:43 -0700
committereepeep <50846949+eepeep@users.noreply.github.com>2025-08-28 23:11:24 +0000
commit3e1beec658de176f019d70b438efd52ea21b2cf4 (patch)
tree92cd542b83bff3e28f8eebd6336973d24bb79cfd /vm
parentd401b9d77980e7469e1c6eaa282f33df0fcfb3df (diff)
vm/starnix: switch to new ffx command for vm ssh address
Instead of: ffx --target <target> target get-ssh-address Use: ffx --target <target> target list --format addresses
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
}