removing the agent config
This commit is contained in:
parent
f8cd51b6e9
commit
592a3ab615
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue