From 11905339bb24105882b6825bf6e5a00818898113 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 13 Jan 2025 12:42:56 +0100 Subject: [PATCH] add exec --- models/resources/processing.go | 2 +- models/resources/resource.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/models/resources/processing.go b/models/resources/processing.go index e4634ba..8369e13 100644 --- a/models/resources/processing.go +++ b/models/resources/processing.go @@ -31,7 +31,7 @@ type ProcessingResource struct { OpenSource bool `json:"open_source" bson:"open_source" default:"false"` License string `json:"license,omitempty" bson:"license,omitempty"` Maturity string `json:"maturity,omitempty" bson:"maturity,omitempty"` - Container common.Container `json:"container,omitempty" bson:"container,omitempty"` // Container is the container + Container *common.Container `json:"container,omitempty" bson:"container,omitempty"` // Container is the container } type PricedProcessingResource struct { diff --git a/models/resources/resource.go b/models/resources/resource.go index dfee5e3..885f7d1 100644 --- a/models/resources/resource.go +++ b/models/resources/resource.go @@ -56,7 +56,8 @@ func (abs *AbsResource) SetResourceModel(model *resource_model.ResourceModel) { type AbstractResource[T ResourceInstanceITF] struct { AbsResource - Instances []T `json:"instances,omitempty" bson:"instances,omitempty"` // Bill is the bill of the resource // Bill is the bill of the resource + SelectedInstanceIndex int `json:"selected_instance_index,omitempty" bson:"selected_instance_index,omitempty"` // SelectedInstance is the selected instance + Instances []T `json:"instances,omitempty" bson:"instances,omitempty"` // Bill is the bill of the resource // Bill is the bill of the resource } func (abs *AbstractResource[T]) ConvertToPricedResource(