mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 17:11:13 +02:00
Merge pull request #1068 from lunixbochs/master
don't panic when config directory is empty
This commit is contained in:
commit
c35836bc89
@ -79,6 +79,12 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure at least one config was found.
|
||||
if config == nil {
|
||||
c.Ui.Error("No configuration files found.")
|
||||
return 1
|
||||
}
|
||||
|
||||
// Ensure that a backend is provided
|
||||
if config.Backend == nil {
|
||||
c.Ui.Error("A physical backend must be specified")
|
||||
|
Loading…
x
Reference in New Issue
Block a user