Skip to content

Commit

Permalink
Add the real error to the comment and not my bad memory of what it was.
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Nov 19, 2018
1 parent 084cf3a commit 930abd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func resourceComputeInstanceGroupManagerRead(d *schema.ResourceData, meta interf
}
d.Set("update_strategy", update_strategy.(string))

// When we make a list Removed, we see a permadiff from `0 => ` (nil). Set to nil in Read so we see no diff.
// When we make a list Removed, we see a permadiff from `field_name.#: "" => "<computed>"`. Set to nil in Read so we see no diff.
d.Set("version" , nil)
<% else -%>
if err = d.Set("auto_healing_policies", flattenAutoHealingPolicies(manager.AutoHealingPolicies)); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func resourceComputeRegionInstanceGroupManagerRead(d *schema.ResourceData, meta
}
d.Set("update_strategy", update_strategy.(string))

// When we make a list Removed, we see a permadiff from `0 => ` (nil). Set to nil in Read so we see no diff.
// When we make a list Removed, we see a permadiff from `field_name.#: "" => "<computed>"`. Set to nil in Read so we see no diff.
d.Set("version" , nil)
<% else -%>
if err := d.Set("auto_healing_policies", flattenAutoHealingPolicies(manager.AutoHealingPolicies)); err != nil {
Expand Down

0 comments on commit 930abd6

Please sign in to comment.