From d3fd34534f59f4020c498b56d7cc8f1cc86d6c4e Mon Sep 17 00:00:00 2001 From: manjunath-batakurki Date: Fri, 23 Feb 2024 00:46:52 -0800 Subject: [PATCH] address comments --- pkg/client/router.go | 2 +- pkg/common/constants.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/client/router.go b/pkg/client/router.go index ff83b7d..3265d5c 100644 --- a/pkg/client/router.go +++ b/pkg/client/router.go @@ -163,7 +163,7 @@ func (r *RouterAPIService) RefreshNetworkServices( ) (models.SuccessOrErrorMessage, error) { serverResp := models.SuccessOrErrorMessage{} serverAPI := &api{ - compatibleVersion: "6.0.5", + compatibleVersion: consts.CMPSixZeroFiveVersion, method: "POST", path: fmt.Sprintf("%s/%s/%d/%s", consts.NetworksPath, consts.ServerPath, serverID, consts.RefreshPath), diff --git a/pkg/common/constants.go b/pkg/common/constants.go index fe0fc67..f19e26b 100644 --- a/pkg/common/constants.go +++ b/pkg/common/constants.go @@ -64,4 +64,7 @@ const ( // headers ContentType = "application/json" + + // Morpheus version + CMPSixZeroFiveVersion = "6.0.5" )