diff --git a/cmd/warrend/conf/conf.go b/cmd/warrend/conf/conf.go index c217e3c..8062985 100644 --- a/cmd/warrend/conf/conf.go +++ b/cmd/warrend/conf/conf.go @@ -95,8 +95,12 @@ func saveConf() error { return nil } -// TODO: return copies func GetConf() *Conf { + var confCopy *Conf = new(Conf) + confCopy.Deployments = make(map[string]Deployment) + for key, deployment := range(conf.Deployments) { + confCopy.Deployments[key] = deployment + } return conf }