From bf77aba415ff7d46452b17b4e950c290089b01a4 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Wed, 31 Jan 2024 00:14:26 +0530 Subject: [PATCH] Fix ResourcePermissions propagation --- internal/cmp/resource_network.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/cmp/resource_network.go b/internal/cmp/resource_network.go index 4ed7453c..c1c541d5 100644 --- a/internal/cmp/resource_network.go +++ b/internal/cmp/resource_network.go @@ -1,4 +1,4 @@ -// (C) Copyright 2021 Hewlett Packard Enterprise Development LP +// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP package cmp @@ -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 @@ -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