summaryrefslogtreecommitdiffstats
path: root/src/dkv/api/propertiesReader.go
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-02-22 15:14:56 -0800
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-02-23 15:26:49 -0800
commitff8cba5a49e85fbb1d2e14f0fa0bcb5bf92caf34 (patch)
treed0eacb13eb64f3819f76e3fac13084fcf9f811dc /src/dkv/api/propertiesReader.go
parent3e92cb38f9be554afccf7ac409dfbedbeec769a2 (diff)
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 <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'src/dkv/api/propertiesReader.go')
-rw-r--r--src/dkv/api/propertiesReader.go5
1 files changed, 3 insertions, 2 deletions
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