From a4f31feda88ba8c5ac9e1cfb1ee78ef536475647 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Fri, 20 Mar 2020 12:34:18 -0700 Subject: Sync up Key json attribute names Sync up names used for the Key structures and tagMeta attribute names. This should ensure that the mongo db routines will query properly. Issue-ID: MULTICLOUD-1029 Signed-off-by: Eric Multanen Change-Id: I05da9de92a22cb73d60a7349c3cc5bd4cedd99a5 --- src/orchestrator/pkg/module/deployment_intent_groups.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/orchestrator/pkg/module/deployment_intent_groups.go') diff --git a/src/orchestrator/pkg/module/deployment_intent_groups.go b/src/orchestrator/pkg/module/deployment_intent_groups.go index fe622771..cfbf53e2 100644 --- a/src/orchestrator/pkg/module/deployment_intent_groups.go +++ b/src/orchestrator/pkg/module/deployment_intent_groups.go @@ -65,10 +65,10 @@ type DeploymentIntentGroupManager interface { // DeploymentIntentGroupKey consists of Name of the deployment group, project name, CompositeApp name, CompositeApp version type DeploymentIntentGroupKey struct { - Name string `json:"name"` + Name string `json:"deploymentintentgroup"` Project string `json:"project"` CompositeApp string `json:"compositeapp"` - Version string `json:"version"` + Version string `json:"compositeappversion"` } // We will use json marshalling to convert to string to @@ -91,7 +91,7 @@ type DeploymentIntentGroupClient struct { func NewDeploymentIntentGroupClient() *DeploymentIntentGroupClient { return &DeploymentIntentGroupClient{ storeName: "orchestrator", - tagMetaData: "deploymentintentgroup", + tagMetaData: "deploymentintentgroupmetadata", } } -- cgit 1.2.3-korg