summaryrefslogtreecommitdiffstats
path: root/src/dcm/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/dcm/cmd')
-rw-r--r--src/dcm/cmd/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dcm/cmd/main.go b/src/dcm/cmd/main.go
index d8c13d2e..77d5348b 100644
--- a/src/dcm/cmd/main.go
+++ b/src/dcm/cmd/main.go
@@ -26,7 +26,7 @@ import (
"github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/auth"
"github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/config"
"github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db"
-
+ contextDb "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/contextdb"
"github.com/gorilla/handlers"
)
@@ -41,6 +41,13 @@ func main() {
log.Fatalln("Exiting...")
}
+ err = contextDb.InitializeContextDatabase()
+ if err != nil {
+ log.Println("Unable to initialize database connection...")
+ log.Println(err)
+ log.Fatalln("Exiting...")
+ }
+
httpRouter := api.NewRouter(nil, nil, nil, nil, nil)
loggedRouter := handlers.LoggingHandler(os.Stdout, httpRouter)
log.Println("Starting Distributed Cloud Manager API")