nomad: unset consul token on job register

This commit is contained in:
Seth Hoenig 2020-02-12 09:58:51 -06:00
parent bf397c411e
commit 02151dee45

View file

@ -256,6 +256,9 @@ func (j *Job) Register(args *structs.JobRegisterRequest, reply *structs.JobRegis
// Clear the Vault token
args.Job.VaultToken = ""
// Clear the Consul token
args.Job.ConsulToken = ""
// Check if the job has changed at all
if existingJob == nil || existingJob.SpecChanged(args.Job) {
// Set the submit time