removing the agent config

This commit is contained in:
Diptanu Choudhury 2016-08-18 12:12:03 -07:00
parent f8cd51b6e9
commit 592a3ab615

View file

@ -241,11 +241,6 @@ func (a *Agent) serverConfig() (*nomad.Config, error) {
// Add the Consul and Vault configs // Add the Consul and Vault configs
conf.ConsulConfig = a.config.Consul 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 conf.VaultConfig = a.config.Vault
return conf, nil return conf, nil