Skip to content

fixed sf compute lifecycle status#95

Merged
tylerfong merged 4 commits intomainfrom
fixed-sfc-lifecycle-status
Feb 26, 2026
Merged

fixed sf compute lifecycle status#95
tylerfong merged 4 commits intomainfrom
fixed-sfc-lifecycle-status

Conversation

@tylerfong
Copy link
Contributor

No description provided.

@tylerfong tylerfong requested a review from a team as a code owner February 26, 2026 21:33
// If the VM is not running, set the SSH username and hostname to empty strings
if strings.ToLower(vmStatus) != "running" {
if strings.ToLower(vmStatus) != vmStatusRunning {
return "", nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we want to return an empty string when not running

} else {
return nil, errors.WrapAndTrace(fmt.Errorf("multiple VMs found for node %s", node.ID))
// Multiple VMs — find the first running one for SSH info.
for _, vm := range node.VMs.Data {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can put into own method

@tylerfong tylerfong merged commit ff74550 into main Feb 26, 2026
8 of 9 checks passed
@tylerfong tylerfong deleted the fixed-sfc-lifecycle-status branch February 26, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants