Skip to content

Conversation

@sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Dec 22, 2025

In RFD 619, we've decided on a new way to organize published types; this PR makes the Propolis API conform to the RFD.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@sunshowers sunshowers requested a review from iximeow December 23, 2025 23:33
Comment on lines -305 to -309
async fn v0_instance_ensure(
rqctx: RequestContext<Self::Context>,
request: TypedBody<api::v0::InstanceEnsureRequestV0>,
) -> Result<HttpResponseCreated<api::InstanceEnsureResponse>, HttpError>
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code was replaced with a simpler From conversion.

///
/// - `Some` if the VM has been created.
/// - `None` if no VM has ever been created.
pub(super) async fn v0_get(&self) -> Option<InstanceSpecGetResponseV0> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code becomes unnecessary now that the response type has a From implementation.

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