From 15c53d74b18197a87fa64dc5a1539ae973791bfd Mon Sep 17 00:00:00 2001 From: Steven Fraser Date: Wed, 10 Jul 2024 04:06:04 -0400 Subject: [PATCH] adding provider to convert (#806) * adding provider to convert * add to creation statement * fix variable * fix provider variable * fix tests --------- Co-authored-by: Richard Case --- infrastructure/grpc/convert.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure/grpc/convert.go b/infrastructure/grpc/convert.go index aba29152..db174800 100644 --- a/infrastructure/grpc/convert.go +++ b/infrastructure/grpc/convert.go @@ -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 }