Skip to content

Commit 7e28e2d

Browse files
authored
tfjson: Update Complete to a pointer value for older Terraform versions (#131)
1 parent 5e08e15 commit 7e28e2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plan.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ type Plan struct {
6666

6767
// Complete indicates that all resources have successfully planned changes.
6868
// This will be false if there are DeferredChanges or if the -target flag is used.
69-
Complete bool `json:"complete,omitempty"`
69+
//
70+
// Complete was introduced in Terraform 1.8 and will be nil for all previous
71+
// Terraform versions.
72+
Complete *bool `json:"complete,omitempty"`
7073

7174
// The change operations for outputs within this plan.
7275
OutputChanges map[string]*Change `json:"output_changes,omitempty"`

0 commit comments

Comments
 (0)