Skip to content

Commit

Permalink
fix: add vapp_id attribut in cloudavenue_vapp_org_network
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod committed Sep 22, 2023
1 parent 067cc5a commit 354f4b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/provider/vapp/org_network_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,18 @@ 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,
RetainIPMacEnabled: plan.RetainIPMacEnabled,
}

// 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
}
Expand Down

0 comments on commit 354f4b0

Please sign in to comment.