Skip to content

Commit

Permalink
don't apply unchanged attributes from legacy diffs
Browse files Browse the repository at this point in the history
If a legacy diff has equal old and new values, don't apply the diff.
These would show up in sets, because of the overall change in set key.
  • Loading branch information
jbardin committed Nov 1, 2018
1 parent e91f381 commit 7e4f09c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ func (d *InstanceDiff) ApplyToValue(base cty.Value, schema *configschema.Block)
continue
}

// sometimes helper/schema gives us values that aren't really a diff
if diff.Old == diff.New {
continue
}

attrs[attr] = diff.New
}

Expand Down

0 comments on commit 7e4f09c

Please sign in to comment.