diff --git a/nutanix/provider/provider.go b/nutanix/provider/provider.go index 552c78da7..8a0319749 100644 --- a/nutanix/provider/provider.go +++ b/nutanix/provider/provider.go @@ -267,6 +267,8 @@ func Provider() *schema.Provider { "nutanix_storage_container_stats_info_v2": storagecontainersv2.DatasourceNutanixStorageStatsInfoV2(), "nutanix_category_v2": prismv2.DatasourceNutanixCategoryV2(), "nutanix_categories_v2": prismv2.DatasourceNutanixCategoriesV2(), + "nutanix_pcs_v2": prismv2.DatasourceNutanixListPcsV2(), + "nutanix_pc_v2": prismv2.DatasourceNutanixFetchPcV2(), "nutanix_volume_groups_v2": volumesv2.DatasourceNutanixVolumeGroupsV2(), "nutanix_volume_group_v2": volumesv2.DatasourceNutanixVolumeGroupV2(), "nutanix_volume_group_disks_v2": volumesv2.DatasourceNutanixVolumeDisksV2(), diff --git a/nutanix/services/prismv2/data_source_nutanix_pc_v2.go b/nutanix/services/prismv2/data_source_nutanix_pc_v2.go index 02b039936..dea135c73 100644 --- a/nutanix/services/prismv2/data_source_nutanix_pc_v2.go +++ b/nutanix/services/prismv2/data_source_nutanix_pc_v2.go @@ -10,7 +10,7 @@ import ( "github.com/terraform-providers/terraform-provider-nutanix/utils" ) -func DatasourceNutanixFetchPcInfoV2() *schema.Resource { +func DatasourceNutanixFetchPcV2() *schema.Resource { return &schema.Resource{ ReadContext: DatasourceNutanixPcV2Read, Schema: map[string]*schema.Schema{ diff --git a/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go b/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go index 8fb7fdb53..576d41e2d 100644 --- a/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go +++ b/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go @@ -9,7 +9,7 @@ import ( "github.com/terraform-providers/terraform-provider-nutanix/utils" ) -func DatasourceNutanixListPcsInfoV2() *schema.Resource { +func DatasourceNutanixListPcsV2() *schema.Resource { return &schema.Resource{ ReadContext: DatasourceNutanixListPcsV2Read, Schema: map[string]*schema.Schema{ @@ -20,7 +20,7 @@ func DatasourceNutanixListPcsInfoV2() *schema.Resource { "pcs": { Type: schema.TypeList, Computed: true, - Elem: DatasourceNutanixFetchPcInfoV2(), + Elem: DatasourceNutanixFetchPcV2(), }, }, }