Skip to content

Commit

Permalink
dnacenter_wireless_profiles does not properly read or synchronizes to…
Browse files Browse the repository at this point in the history
… state

#233
  • Loading branch information
fmunoz committed Nov 15, 2023
1 parent 33753cb commit fdaff72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dnacenter/resource_wireless_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,14 @@ func resourceWirelessProfileRead(ctx context.Context, d *schema.ResourceData, m

request1 := expandRequestWirelessProfileCreateWirelessProfile(ctx, "parameters.0", d)
*resp[0].ProfileDetails.SSIDDetails = *orderSSIDDetails(*request1.ProfileDetails.SSIDDetails, *resp[0].ProfileDetails.SSIDDetails)

vItem1 := flattenWirelessGetWirelessProfileItems(response1)
if err := d.Set("item", vItem1); err != nil {
diags = append(diags, diagError(
"Failure when setting GetWirelessProfile search response",
err))
return diags
}

vItem1[0]["profile_details"].([]map[string]interface{})[0]["sites"] = request1.ProfileDetails.Sites
if err := d.Set("parameters", vItem1); err != nil {
diags = append(diags, diagError(
"Failure when setting GetWirelessProfile search response",
Expand Down

0 comments on commit fdaff72

Please sign in to comment.