From e6af517f50ee9946c5ec704d6ce41cd633af40f7 Mon Sep 17 00:00:00 2001 From: lenny Date: Tue, 6 Apr 2021 15:48:22 -0700 Subject: [PATCH] refactor: Expos ConfigVersion so services can use if needed closes #203 Signed-off-by: lenny --- bootstrap/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/config/config.go b/bootstrap/config/config.go index 1d9c485b..bf7bb3c7 100644 --- a/bootstrap/config/config.go +++ b/bootstrap/config/config.go @@ -43,7 +43,7 @@ import ( const ( writableKey = "/Writable" - configVersion = "2.0" + ConfigVersion = "2.0" ) // UpdatedStream defines the stream type that is notified by ListenForChanges when a configuration update is received. @@ -316,7 +316,7 @@ func (cp *Processor) createProviderClient( accessTokenFile string, providerConfig types.ServiceConfig) (configuration.Client, error) { - providerConfig.BasePath = filepath.Join(configStem, configVersion, serviceKey) + providerConfig.BasePath = filepath.Join(configStem, ConfigVersion, serviceKey) providerConfig.AccessToken = accessTokenFile cp.Logger.Info(fmt.Sprintf(