Skip to content

Commit

Permalink
adding provider to convert (#806)
Browse files Browse the repository at this point in the history
* adding provider to convert

* add to creation statement

* fix variable

* fix provider variable

* fix tests

---------

Co-authored-by: Richard Case <[email protected]>
  • Loading branch information
steve-fraser and richardcase authored Jul 10, 2024
1 parent 0d0255a commit 15c53d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/grpc/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func convertMicroVMToModel(spec *types.MicroVMSpec) (*models.MicroVM, error) {
convertedModel.Spec.Metadata[metadataKey] = metadataValue
}

if spec.Provider != nil {
convertedModel.Spec.Provider = *spec.Provider
}

return convertedModel, nil
}

Expand Down

0 comments on commit 15c53d7

Please sign in to comment.