Skip to content

Commit

Permalink
tfjson: Update Complete to a pointer value for older Terraform vers…
Browse files Browse the repository at this point in the history
…ions (#131)
  • Loading branch information
austinvalle committed May 17, 2024
1 parent 5e08e15 commit 7e28e2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ type Plan struct {

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

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

0 comments on commit 7e28e2d

Please sign in to comment.