From f77311fe05bdcac902e51fd7add1e45602cdaf87 Mon Sep 17 00:00:00 2001 From: Haroon-Dweikat-Ntx Date: Mon, 6 Jan 2025 20:08:46 +0200 Subject: [PATCH] rename the data source to fetch/list domain manager from pc to domain_managers --- .../prismv2/data_source_nutanix_domain_managers_v2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nutanix/services/prismv2/data_source_nutanix_domain_managers_v2.go b/nutanix/services/prismv2/data_source_nutanix_domain_managers_v2.go index c61e3973..430166c1 100644 --- a/nutanix/services/prismv2/data_source_nutanix_domain_managers_v2.go +++ b/nutanix/services/prismv2/data_source_nutanix_domain_managers_v2.go @@ -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) }