From 753b0c667a014a5d32ddd36abae86f69cefd55c1 Mon Sep 17 00:00:00 2001 From: Josh De Winne Date: Thu, 18 Sep 2025 09:59:00 -0700 Subject: [PATCH 1/2] Allow ssh/scp while vm is updating --- cli/cmd/vm_endpoints.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmd/vm_endpoints.go b/cli/cmd/vm_endpoints.go index 68a6fb87..105d9a3d 100644 --- a/cli/cmd/vm_endpoints.go +++ b/cli/cmd/vm_endpoints.go @@ -146,8 +146,8 @@ func (r *runners) getVMEndpoint(vmID, endpointType, username string) error { Status: string(vmFromAPI.Status), } - if vm.Status != "running" { - return errors.Errorf("VM %s is not in running state (current state: %s). %s is only available for running VMs", + if vm.Status != "running" && vm.Status != "updating" { + return errors.Errorf("VM %s is not in running or updating state (current state: %s). %s is only available for running or updating VMs", vm.ID, vm.Status, strings.ToUpper(endpointType)) } From 460cc97278f157b94a6b4b252fe4a97f74b39f68 Mon Sep 17 00:00:00 2001 From: Josh De Winne Date: Thu, 18 Sep 2025 10:05:50 -0700 Subject: [PATCH 2/2] w --- cli/cmd/vm_endpoints_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/vm_endpoints_test.go b/cli/cmd/vm_endpoints_test.go index 9444356f..8e5f5caf 100644 --- a/cli/cmd/vm_endpoints_test.go +++ b/cli/cmd/vm_endpoints_test.go @@ -156,7 +156,7 @@ func TestGetVMEndpoint(t *testing.T) { mockGithubUsername: "testuser", githubAPIError: false, expectedOutput: "", - expectedError: "VM vm-123 is not in running state (current state: provisioning). SSH is only available for running VMs", + expectedError: "VM vm-123 is not in running or updating state (current state: provisioning). SSH is only available for running or updating VMs", }, }