From 37d6db6db3e8d11ec30032058bfaa57b73155fc9 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 8 Jul 2020 10:10:08 -0400 Subject: [PATCH] fix multiregion plan output flags (#8375) 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. --- command/job_plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/job_plan.go b/command/job_plan.go index 5ab2d8d3494..e44171f24c7 100644 --- a/command/job_plan.go +++ b/command/job_plan.go @@ -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 }