summaryrefslogtreecommitdiffstats
path: root/src/ncm/pkg
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-05-19 21:51:37 +0000
committerEric Multanen <eric.w.multanen@intel.com>2020-05-20 21:08:42 -0700
commit55df44a00598b127a0243094042e9eaa526f2071 (patch)
tree5e89062367ad9b02c90b4afef386ce171daa7c16 /src/ncm/pkg
parenteb3eac7c732dc02947868343d70851d89e8ff207 (diff)
Change NCM for upstream change in orchestrator
Issue-ID: MULTICLOUD-1064 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ie4a914adbb20f6227dcba9c380a9d416f5274ad3
Diffstat (limited to 'src/ncm/pkg')
-rw-r--r--src/ncm/pkg/module/cluster.go2
-rw-r--r--src/ncm/pkg/module/netcontrolintent.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ncm/pkg/module/cluster.go b/src/ncm/pkg/module/cluster.go
index e0464c96..2397a091 100644
--- a/src/ncm/pkg/module/cluster.go
+++ b/src/ncm/pkg/module/cluster.go
@@ -512,7 +512,7 @@ func (v *ClusterClient) ApplyNetworkIntents(provider, name string) error {
// add the resources to the app context
for _, resource := range resources {
- _, err = context.AddResource(clusterhandle, resource.name, []byte(resource.value))
+ _, err = context.AddResource(clusterhandle, resource.name, resource.value)
if err != nil {
cleanuperr := context.DeleteCompositeApp()
if cleanuperr != nil {
diff --git a/src/ncm/pkg/module/netcontrolintent.go b/src/ncm/pkg/module/netcontrolintent.go
index da8f9a85..c005a935 100644
--- a/src/ncm/pkg/module/netcontrolintent.go
+++ b/src/ncm/pkg/module/netcontrolintent.go
@@ -281,7 +281,7 @@ func (v *NetControlIntentClient) ApplyNetControlIntent(name, project, compositea
}
// Update resource in AppContext
- err = context.UpdateResourceValue(rh, y)
+ err = context.UpdateResourceValue(rh, string(y))
if err != nil {
log.Error("Network updating app context resource handle", log.Fields{
"error": err,