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

+11 -3
View File
@@ -2,6 +2,14 @@
Canonical reference for changes, improvements, and bugfixes for Boundary.
## Next
### Bug Fixes
* db: Fix panic in `database init` when controller config block is missing
([Issue](https://github.com/hashicorp/boundary/issues/819))
([PR](https://github.com/hashicorp/boundary/pull/851))
## 0.1.4 (2021/01/05)
### New and Improved
@@ -62,7 +70,7 @@ Canonical reference for changes, improvements, and bugfixes for Boundary.
([Issue](https://github.com/hashicorp/boundary/issues/794))
([PR](https://github.com/hashicorp/boundary/pull/839))
## v0.1.2 (2020/11/17)
## 0.1.2 (2020/11/17)
### New and Improved
@@ -92,7 +100,7 @@ Canonical reference for changes, improvements, and bugfixes for Boundary.
* controller, cli: Fix mutual exclusivity bug with using -authz-token on `boundary connect`
([PR](https://github.com/hashicorp/boundary/pull/787))
## v0.1.1 (2020/10/22)
## 0.1.1 (2020/10/22)
### Changes/Deprecations
@@ -144,7 +152,7 @@ them to access targets).
([Issue](https://github.com/hashicorp/boundary/issues/727))
([PR](https://github.com/hashicorp/boundary/pull/705))
## v0.1.0 (2020/10/14)
## 0.1.0 (2020/10/14)
v0.1.0 is the first release of Boundary. As a result there are no changes,
improvements, or bugfixes from past versions.
+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