Skip to content

Commit

Permalink
Fix ResourcePermissions propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Jan 30, 2024
1 parent 28fadbb commit bf77aba
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 bf77aba

Please sign in to comment.