From 3e1beec658de176f019d70b438efd52ea21b2cf4 Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Thu, 28 Aug 2025 15:21:43 -0700 Subject: vm/starnix: switch to new ffx command for vm ssh address Instead of: ffx --target target get-ssh-address Use: ffx --target target list --format addresses --- vm/starnix/starnix.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vm/starnix') 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 } -- cgit mrf-deployment