Skip to content

Commit

Permalink
Ignore the Nomad token for the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
remilapeyre committed Sep 28, 2020
1 parent 3215165 commit ec37de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nomad/resource_job_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func resourceJobV2Read(d *schema.ResourceData, meta interface{}) error {
}
wantedJob.ConsulToken = nil
wantedJob.VaultToken = nil
wantedJob.NomadTokenID = job.NomadTokenID
plan, _, err := client.Jobs().Plan(wantedJob, true, nil)

log.Printf("[DEBUG] Got the diff from Nomad: %s", spew.Sdump(plan.Diff))
Expand Down

0 comments on commit ec37de6

Please sign in to comment.