From 354f4b0196622018976e4aef60a1f744f18d6a90 Mon Sep 17 00:00:00 2001 From: Mickael Stanislas Date: Fri, 22 Sep 2023 09:41:01 +0200 Subject: [PATCH] fix: add `vapp_id` attribut in `cloudavenue_vapp_org_network` --- internal/provider/vapp/org_network_resource.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/provider/vapp/org_network_resource.go b/internal/provider/vapp/org_network_resource.go index f23cc9fc..a7436042 100644 --- a/internal/provider/vapp/org_network_resource.go +++ b/internal/provider/vapp/org_network_resource.go @@ -149,9 +149,10 @@ func (r *orgNetworkResource) Create(ctx context.Context, req resource.CreateRequ return } - plan = &orgNetworkModel{ + state := &orgNetworkModel{ ID: types.StringValue(uuid.Normalize(uuid.Network, networkID).String()), VAppName: plan.VAppName, + VAppID: plan.VAppID, VDC: types.StringValue(r.vdc.GetName()), NetworkName: plan.NetworkName, IsFenced: plan.IsFenced, @@ -159,7 +160,7 @@ func (r *orgNetworkResource) Create(ctx context.Context, req resource.CreateRequ } // Set state to fully populated data - resp.Diagnostics.Append(resp.State.Set(ctx, &plan)...) + resp.Diagnostics.Append(resp.State.Set(ctx, &state)...) if resp.Diagnostics.HasError() { return }