From 9cfeb80dc920b213ea70fdfd2463f6746fb4e2f9 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Wed, 27 May 2020 16:20:17 -0700 Subject: Update go.mod files of services to use local code Change go.mod files to replace usage of services in this repo with local code instead of upstream builds. Fix a couple resulting issues. Issue-ID: MULTICLOUD-1077 Signed-off-by: Eric Multanen Change-Id: I597c7bf98beac3fcee9e37699966cbe839335bf2 --- src/rsync/pkg/grpc/register.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/rsync/pkg') diff --git a/src/rsync/pkg/grpc/register.go b/src/rsync/pkg/grpc/register.go index 4755256f..fb462505 100644 --- a/src/rsync/pkg/grpc/register.go +++ b/src/rsync/pkg/grpc/register.go @@ -19,7 +19,8 @@ import ( "strings" log "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/logutils" - module "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module" + controller "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module/controller" + mtypes "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module/types" ) const default_host = "localhost" @@ -70,18 +71,18 @@ func RegisterGrpcServer(host string, port int) error { }) } - client := module.NewControllerClient() + client := controller.NewControllerClient() // Create or update the controller entry - controller := module.Controller{ - Metadata: module.Metadata{ + controller := controller.Controller{ + Metadata: mtypes.Metadata{ Name: serviceName, }, - Spec: module.ControllerSpec{ + Spec: controller.ControllerSpec{ Host: host, Port: port, - Type: module.CONTROLLER_TYPE_ACTION, - Priority: module.MinControllerPriority, + Type: controller.CONTROLLER_TYPE_ACTION, + Priority: controller.MinControllerPriority, }, } _, err := client.CreateController(controller, true) -- cgit 1.2.3-korg