Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ResourcePermissions propagation #218

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading