Skip to content

Commit

Permalink
send_empty_values flag added for guest_flush (#4502) (#2975)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Feb 19, 2021
1 parent fca0356 commit 5c016fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/4502.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
compute : fixed a bug where `guest_flush` could not be set to false for the resource `google_compute_resource_policy`
```
2 changes: 1 addition & 1 deletion google-beta/resource_compute_resource_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ func expandComputeResourcePolicySnapshotSchedulePolicySnapshotProperties(v inter
transformedGuestFlush, err := expandComputeResourcePolicySnapshotSchedulePolicySnapshotPropertiesGuestFlush(original["guest_flush"], d, config)
if err != nil {
return nil, err
} else if val := reflect.ValueOf(transformedGuestFlush); val.IsValid() && !isEmptyValue(val) {
} else {
transformed["guestFlush"] = transformedGuestFlush
}

Expand Down

0 comments on commit 5c016fc

Please sign in to comment.