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/app_intent.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/orchestrator/pkg/module/app_intent.go') diff --git a/src/orchestrator/pkg/module/app_intent.go b/src/orchestrator/pkg/module/app_intent.go index 70c80dac..a3f4b832 100644 --- a/src/orchestrator/pkg/module/app_intent.go +++ b/src/orchestrator/pkg/module/app_intent.go @@ -74,11 +74,11 @@ type AppIntentManager interface { // AppIntentKey is used as primary key type AppIntentKey struct { - Name string `json:"name"` + Name string `json:"appintent"` Project string `json:"project"` CompositeApp string `json:"compositeapp"` - Version string `json:"version"` - Intent string `json:"intent-name"` + Version string `json:"compositeappversion"` + Intent string `json:"genericplacement"` } // We will use json marshalling to convert to string to @@ -101,7 +101,7 @@ type AppIntentClient struct { func NewAppIntentClient() *AppIntentClient { return &AppIntentClient{ storeName: "orchestrator", - tagMetaData: "appintent", + tagMetaData: "appintentmetadata", } } -- cgit 1.2.3-korg