mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
removing the agent config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user