removing the agent config

This commit is contained in:
Diptanu Choudhury 2016-08-18 12:12:03 -07:00
parent f8cd51b6e9
commit 592a3ab615
1 changed files with 0 additions and 5 deletions

View File

@ -241,11 +241,6 @@ func (a *Agent) serverConfig() (*nomad.Config, error) {
// Add the Consul and Vault configs
conf.ConsulConfig = a.config.Consul
// Enable vault if the token is present
if strings.TrimSpace(a.config.Vault.Token) != "" {
a.config.Vault.Enabled = true
}
conf.VaultConfig = a.config.Vault
return conf, nil