ICU-934/Verify controller config block (#851)

* Verify controller config block

* update changelog
This commit is contained in:
Louis Ruch authored and GitHub committed 2021-01-06 10:41:38 -08:00
1 parent 9a9efd16e2
commit dbc796759b
2 files changed
+16 -3

No files matched your search

+5
View File
@@ -227,6 +227,11 @@ func (c *InitCommand) Run(args []string) (retCode int) {
"in a Docker container, provide the IPC_LOCK cap to the container."))
}
if c.Config.Controller == nil {
c.UI.Error(`"controller" config block not found`)
return 1
}
if c.Config.Controller.Database == nil {
c.UI.Error(`"controller.database" config block not found`)
return 1