diff options
author | Bin Yang <bin.yang@windriver.com> | 2020-02-15 03:02:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-15 03:02:14 +0000 |
commit | 8af74ae61508a3fbfd54c25d1cfe037f3ad08ca5 (patch) | |
tree | f22f86d106d281aec7ccedf6b7a4f1078f5cef9c /src/orchestrator/cmd/main.go | |
parent | e8e3cfc3d3df008505520836fafc9920f5643ca6 (diff) | |
parent | c3e1c9a5fefde3fcb6aaf05c19b18f211c1a43ba (diff) |
Merge changes I56fb4643,Ia1e9802a
* changes:
Add etcd support in infrastructure layer
Restructure code and create module library
Diffstat (limited to 'src/orchestrator/cmd/main.go')
-rw-r--r-- | src/orchestrator/cmd/main.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go index 657d5bf5..f46fe910 100644 --- a/src/orchestrator/cmd/main.go +++ b/src/orchestrator/cmd/main.go @@ -23,10 +23,10 @@ import ( "time" "github.com/onap/multicloud-k8s/src/orchestrator/api" - "github.com/onap/multicloud-k8s/src/orchestrator/internal/auth" - "github.com/onap/multicloud-k8s/src/orchestrator/internal/config" - "github.com/onap/multicloud-k8s/src/orchestrator/internal/db" - + "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" ) @@ -40,6 +40,12 @@ func main() { log.Println(err) 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) loggedRouter := handlers.LoggingHandler(os.Stdout, httpRouter) |