Skip to content

Commit

Permalink
command/show -json: fix panic
Browse files Browse the repository at this point in the history
afterUnknown should return only bools, not values.
  • Loading branch information
mildwonkey committed May 31, 2019
1 parent 8118bf8 commit 411c15f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions command/jsonplan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ func (p *plan) marshalResourceChanges(changes *plans.Changes, schemas *terraform
return cty.False, nil
}

if !val.Type().IsPrimitiveType() {
return val, nil // just pass through non-primitives; they already contain our transform results
}

if val.IsKnown() {
return cty.False, nil
}
Expand Down

0 comments on commit 411c15f

Please sign in to comment.