Skip to content

Commit

Permalink
service endpoints fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksibm committed Oct 17, 2024
1 parent 62cb947 commit 2fef9d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibm/service/vpc/resource_ibm_is_virtual_endpoint_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,11 @@ func resourceIBMisVirtualEndpointGatewayRead(d *schema.ResourceData, meta interf
d.Set(isVirtualEndpointGatewayResourceGroupID, endpointGateway.ResourceGroup.ID)
d.Set(isVirtualEndpointGatewayTarget,
flattenEndpointGatewayTarget(endpointGateway.Target.(*vpcv1.EndpointGatewayTarget)))
serviceEndpoints := []string{}
if len(endpointGateway.ServiceEndpoints) > 0 {
d.Set(isVirtualEndpointGatewayServiceEndpoints, endpointGateway.ServiceEndpoints)
serviceEndpoints = endpointGateway.ServiceEndpoints
}
d.Set(isVirtualEndpointGatewayServiceEndpoints, serviceEndpoints)
d.Set(isVirtualEndpointGatewayVpcID, endpointGateway.VPC.ID)
if endpointGateway.SecurityGroups != nil {
d.Set(isVirtualEndpointGatewaySecurityGroups, flattenDataSourceSecurityGroups(endpointGateway.SecurityGroups))
Expand Down

0 comments on commit 2fef9d0

Please sign in to comment.