Skip to content

Commit

Permalink
fetch and list pc configuration details data sources dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 15, 2024
1 parent 49e7189 commit 33edd71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nutanix/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion nutanix/services/prismv2/data_source_nutanix_pc_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions nutanix/services/prismv2/data_source_nutanix_pcs_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -20,7 +20,7 @@ func DatasourceNutanixListPcsInfoV2() *schema.Resource {
"pcs": {
Type: schema.TypeList,
Computed: true,
Elem: DatasourceNutanixFetchPcInfoV2(),
Elem: DatasourceNutanixFetchPcV2(),
},
},
}
Expand Down

0 comments on commit 33edd71

Please sign in to comment.