Skip to content

Commit

Permalink
Merge pull request #218 from HewlettPackard/network_fix
Browse files Browse the repository at this point in the history
Fix ResourcePermissions propagation
  • Loading branch information
reubenur-rahman authored Jan 31, 2024
2 parents 28fadbb + bf77aba commit b8156c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/cmp/resource_network.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP

package cmp

Expand Down Expand Up @@ -99,7 +99,8 @@ func (r *resNetwork) Create(ctx context.Context, d *utils.Data, meta interface{}

// Create network
createResp, err := r.nClient.CreateNetwork(ctx, models.CreateNetworkRequest{
Network: createReq,
Network: createReq,
ResourcePermissions: createReq.ResourcePermissions,
})
if err != nil {
return err
Expand All @@ -121,7 +122,8 @@ func (r *resNetwork) Update(ctx context.Context, d *utils.Data, meta interface{}
}

updateResp, err := r.nClient.UpdateNetwork(ctx, networkReq.ID, models.CreateNetworkRequest{
Network: networkReq,
Network: networkReq,
ResourcePermissions: networkReq.ResourcePermissions,
})
if err != nil {
return err
Expand Down

0 comments on commit b8156c3

Please sign in to comment.