Skip to content

Commit

Permalink
Fix NAG Member Create (IBM-Cloud#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkad committed Oct 8, 2024
1 parent 39cc5bf commit 64f1057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/instance/ibm-pi-network-address-group.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (f *IBMPINetworkAddressGroupClient) Delete(id string) error {

// Add a member to a Network Address Group
func (f *IBMPINetworkAddressGroupClient) AddMember(id string, body *models.NetworkAddressGroupAddMember) (*models.NetworkAddressGroupMember, error) {
params := network_address_groups.NewV1NetworkAddressGroupsMembersPostParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).WithNetworkAddressGroupID(id)
params := network_address_groups.NewV1NetworkAddressGroupsMembersPostParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).WithNetworkAddressGroupID(id).WithBody(body)
resp, err := f.session.Power.NetworkAddressGroups.V1NetworkAddressGroupsMembersPost(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to add member to network address group %s: %w", id, err))
Expand Down

0 comments on commit 64f1057

Please sign in to comment.