From 36df2f1455ef6ebea42875d6750e64b8cc4d4fff Mon Sep 17 00:00:00 2001 From: lenny Date: Wed, 31 Mar 2021 15:39:51 -0700 Subject: [PATCH] refactor: Update Version Check to use V2 endpoint closes #777 Signed-off-by: lenny --- internal/bootstrap/handlers/version.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/bootstrap/handlers/version.go b/internal/bootstrap/handlers/version.go index df5e2aa26..b08ca4c67 100644 --- a/internal/bootstrap/handlers/version.go +++ b/internal/bootstrap/handlers/version.go @@ -26,6 +26,7 @@ import ( "github.com/edgexfoundry/go-mod-bootstrap/v2/bootstrap/startup" "github.com/edgexfoundry/go-mod-bootstrap/v2/di" "github.com/edgexfoundry/go-mod-core-contracts/v2/clients" + "github.com/edgexfoundry/go-mod-core-contracts/v2/v2" "github.com/edgexfoundry/app-functions-sdk-go/v2/internal" "github.com/edgexfoundry/app-functions-sdk-go/v2/internal/bootstrap/container" @@ -84,7 +85,7 @@ func (vv *VersionValidator) BootstrapHandler( return true } - url := config.Clients[clients.CoreDataServiceKey].Url() + clients.ApiVersionRoute + url := config.Clients[clients.CoreDataServiceKey].Url() + v2.ApiVersionRoute var data []byte var err error for startupTimer.HasNotElapsed() {