Skip to content

Commit

Permalink
Update resource_ibm_is_vpn_gateway.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Nov 2, 2023
1 parent dcd0d30 commit d2fba70
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ibm/service/vpc/resource_ibm_is_vpn_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +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 {
if vpnGateway.ResourceGroup.Name != nil {
d.Set(flex.ResourceGroupName, *vpnGateway.ResourceGroup.Name)
}
if vpnGateway.ResourceGroup.ID != nil {
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 d2fba70

Please sign in to comment.