Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pointer.From to perform nil check
Browse files Browse the repository at this point in the history
Co-authored-by: stephybun <steph@hashicorp.com>
EppO and stephybun authored Jan 29, 2025
1 parent b0c31c0 commit 09a579c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -160,10 +160,7 @@ func resourcePrivateDnsZoneVirtualNetworkLinkRead(d *pluginsdk.ResourceData, met
if props := model.Properties; props != nil {
d.Set("registration_enabled", props.RegistrationEnabled)

if resolutionPolicy := props.ResolutionPolicy; resolutionPolicy != nil {
d.Set("resolution_policy", string(*resolutionPolicy))
}

d.Set("resolution_policy", pointer.From(props.ResolutionPolicy))
if network := props.VirtualNetwork; network != nil {
d.Set("virtual_network_id", network.Id)
}

0 comments on commit 09a579c

Please sign in to comment.