Skip to content

Commit

Permalink
rename the data source to fetch/list domain manager from pc to domain…
Browse files Browse the repository at this point in the history
…_managers
  • Loading branch information
Haroon-Dweikat-Ntx committed Jan 6, 2025
1 parent 34860b5 commit f77311f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ func DatasourceNutanixListPcsV2Read(ctx context.Context, d *schema.ResourceData,
}

if resp.Data == nil {
if err := d.Set("pcs", []map[string]interface{}{}); err != nil {
if err := d.Set("domain_managers", []map[string]interface{}{}); err != nil {
return diag.Errorf("Error setting pcs: %v", err)
}
}
pcs := resp.Data.GetValue().([]config.DomainManager)
if err := d.Set("pcs", flattenPcs(pcs)); err != nil {
if err := d.Set("domain_managers", flattenPcs(pcs)); err != nil {
return diag.Errorf("Error setting pcs: %v", err)
}

Expand Down

0 comments on commit f77311f

Please sign in to comment.