Skip to content

Commit

Permalink
Update comment about setting state
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Oct 4, 2019
1 parent 03b2121 commit b814cb7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ func resourceGoogleProjectServicesRead(d *schema.ResourceData, meta interface{})
_, ook := sset[ov]
_, nok := sset[nv]

// preserve any values set in prior state. If none were set, only store
// the old value.
// preserve the values set in prior state if they're identical. If none
// were set, we delete the new value if it exists. By doing that that
// we only store the old value if the service is enabled, and no value
// if it isn't.
if ook && nok {
continue
} else if ook {
Expand Down

0 comments on commit b814cb7

Please sign in to comment.