Skip to content

Commit

Permalink
resolved nil pointer issue on vpn gateway resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Nov 6, 2023
1 parent ee5af15 commit 3b14277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/service/vpc/resource_ibm_is_vpn_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ func vpngwGet(d *schema.ResourceData, meta interface{}, id string) error {
d.Set(flex.ResourceCRN, *vpnGateway.CRN)
d.Set(isVPNGatewayCRN, *vpnGateway.CRN)
if vpnGateway.ResourceGroup != nil {
d.Set(flex.ResourceGroupName, *vpnGateway.ResourceGroup.Name)
d.Set(isVPNGatewayResourceGroup, *vpnGateway.ResourceGroup.ID)
d.Set(flex.ResourceGroupName, vpnGateway.ResourceGroup.Name)
d.Set(isVPNGatewayResourceGroup, vpnGateway.ResourceGroup.ID)
}
d.Set(isVPNGatewayMode, *vpnGateway.Mode)
if vpnGateway.Members != nil {
Expand Down

0 comments on commit 3b14277

Please sign in to comment.