From ff8cba5a49e85fbb1d2e14f0fa0bcb5bf92caf34 Mon Sep 17 00:00:00 2001 From: Shashank Kumar Shankar Date: Thu, 22 Feb 2018 15:14:56 -0800 Subject: Update dependencies to latest This patch updates dependency versions to latest so that they are compatible with Go version 10 which is being in the process of being run at the Jenkins Jobs [1]. [1] - https://gerrit.onap.org/r/#/c/32291/ It also makes a minor update to the API. Change-Id: Ibd14652686a57c170a2fe60cf4e68b63dcac6119 Issue-ID: MUSIC-23 Signed-off-by: Shashank Kumar Shankar --- src/dkv/api/propertiesReader.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dkv/api/propertiesReader.go') diff --git a/src/dkv/api/propertiesReader.go b/src/dkv/api/propertiesReader.go index a1c94bb..559c0fc 100644 --- a/src/dkv/api/propertiesReader.go +++ b/src/dkv/api/propertiesReader.go @@ -27,7 +27,7 @@ import ( ) type KeyValuesInterface interface { - WriteKVsToConsul() error + WriteKVsToConsul(string) error ReadConfigs(POSTBodyStruct) error PropertiesFilesToKV(string) error ReadMultipleProperties(string) error @@ -41,8 +41,9 @@ type KeyValuesStruct struct { var KeyValues KeyValuesInterface -func (kvStruct *KeyValuesStruct) WriteKVsToConsul() error { +func (kvStruct *KeyValuesStruct) WriteKVsToConsul(prefix string) error { for key, value := range kvStruct.kvs { + key = prefix + "." + key err := Consul.RequestPUT(key, value) if err != nil { return err -- cgit 1.2.3-korg