Skip to content

Commit

Permalink
fix multiregion plan output flags (#8375)
Browse files Browse the repository at this point in the history
The call to render the output diff swapped the `diff` and `verbose` bool
parameters, resulting in dropping the diff output in multi-region plans but
not single-region plans.
  • Loading branch information
tgross authored Jul 8, 2020
1 parent 8f98ff2 commit 37d6db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/job_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (c *JobPlanCommand) multiregionPlan(client *api.Client, job *api.Job, opts

for regionName, resp := range plans {
c.Ui.Output(c.Colorize().Color(fmt.Sprintf("[bold]Region: %q[reset]", regionName)))
regionExitCode := c.outputPlannedJob(job, resp, verbose, diff)
regionExitCode := c.outputPlannedJob(job, resp, diff, verbose)
if regionExitCode > exitCode {
exitCode = regionExitCode
}
Expand Down

0 comments on commit 37d6db6

Please sign in to comment.