Skip to content

Commit

Permalink
Merge pull request #313 from chrisdoherty4/patch/swallow-error
Browse files Browse the repository at this point in the history
Stop swallowing VM deployment error
  • Loading branch information
k8s-ci-robot authored Sep 22, 2023
2 parents a2e323a + 1771844 commit 93841c7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/cloud/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,13 @@ func (c *client) DeployVM(

csMachine.Spec.InstanceID = pointer.String(vm.Id)
csMachine.Status.InstanceState = vm.State
} else {
csMachine.Spec.InstanceID = pointer.String(deployVMResp.Id)
csMachine.Status.Status = pointer.String(metav1.StatusSuccess)

return fmt.Errorf("incomplete vm deployment (vm_id=%v): %w", vm.Id, err)
}

csMachine.Spec.InstanceID = pointer.String(deployVMResp.Id)
csMachine.Status.Status = pointer.String(metav1.StatusSuccess)

return nil
}

Expand Down

0 comments on commit 93841c7

Please sign in to comment.