From 67dd59385cf983ef1307e3b3e410a8f773d8a5c3 Mon Sep 17 00:00:00 2001 From: Shashank Kumar Shankar Date: Wed, 28 Feb 2018 17:54:59 -0800 Subject: Add feature to hold configs in filesystem This patch adds feature to hold config files on filesystem and adds all unit tests to have enough coverage for milestones. Change-Id: Icd6f3dc93e0f419500f82f0a6ccd62e500dfc918 Issue-ID: MUSIC-42 Signed-off-by: Shashank Kumar Shankar --- src/dkv/api/initialise.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/dkv/api/initialise.go') diff --git a/src/dkv/api/initialise.go b/src/dkv/api/initialise.go index 331c981..824ca81 100644 --- a/src/dkv/api/initialise.go +++ b/src/dkv/api/initialise.go @@ -16,18 +16,10 @@ package api -import ( - "errors" - "os" -) - func Initialise() error { - if os.Getenv("CONSUL_IP") == "" { - return errors.New("CONSUL_IP environment variable not set.") - } - Consul = &ConsulStruct{} KeyValues = &KeyValuesStruct{kvs: make(map[string]string)} + Directory = &DirectoryStruct{directory: ""} err := Consul.InitializeConsulClient() if err != nil { -- cgit