Skip to content

Commit 83fc731

Browse files
committed
backend/plan: Show warnings even if no changes are needed
Backport of hashicorp#24095 Fixes hashicorp#22541 for v0.11
1 parent fe16e9b commit 83fc731

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ IMPROVEMENTS:
55
* backend/http: New options for retries on outgoing requests. [GH-19702]
66
* communicator/ssh: Keepalive support [GH-20437]
77

8+
BUG FIXES:
9+
10+
* cli: The `terraform plan` command (and the implied plan run by `terraform apply` with no arguments) will now print any warnings that were generated even if there are no changes to be made. [GH-24095]
11+
812
## 0.11.14 (May 16, 2019)
913

1014
NEW FEATURES:

backend/local/backend_plan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ func (b *Local) opPlan(
129129
dispPlan := format.NewPlan(plan)
130130
if dispPlan.Empty() {
131131
b.CLI.Output("\n" + b.Colorize().Color(strings.TrimSpace(planNoChanges)))
132+
// Even if there are no changes, there still could be some warnings
133+
b.ShowDiagnostics(diags)
132134
return
133135
}
134136

0 commit comments

Comments
 (0)