From b30eee778047473207872ad354d2f47f0babdecb Mon Sep 17 00:00:00 2001 From: "hkantare@in.ibm.com" Date: Mon, 21 Oct 2019 13:59:28 +0530 Subject: [PATCH] Fix datasource power instance volumes --- ibm/data_source_ibm_pi_volumes_test.go | 4 ++-- ...ml.markdown => pi_instance_volumes.html.markdown} | 12 ++++++------ website/ibm.erb | 9 ++++++--- 3 files changed, 14 insertions(+), 11 deletions(-) rename website/docs/d/{pi_volumes.html.markdown => pi_instance_volumes.html.markdown} (63%) diff --git a/ibm/data_source_ibm_pi_volumes_test.go b/ibm/data_source_ibm_pi_volumes_test.go index 4a6e459688..a698cb607f 100644 --- a/ibm/data_source_ibm_pi_volumes_test.go +++ b/ibm/data_source_ibm_pi_volumes_test.go @@ -16,7 +16,7 @@ func TestAccIBMPIVolumesDataSource_basic(t *testing.T) { resource.TestStep{ Config: testAccCheckIBMPIVolumesDataSourceConfig(), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("data.ibm_pi_volumes.testacc_ds_volumes", "pi_volumes_name", pi_volume_name), + resource.TestCheckResourceAttr("data.ibm_pi_instance_volumes.testacc_ds_volumes", "pi_volumes_name", pi_volume_name), ), }, }, @@ -26,7 +26,7 @@ func TestAccIBMPIVolumesDataSource_basic(t *testing.T) { func testAccCheckIBMPIVolumesDataSourceConfig() string { return fmt.Sprintf(` -data "ibm_pi_volumes" "testacc_ds_volumes" { +data "ibm_pi_instance_volumes" "testacc_ds_volumes" { pi_volume_name = "%s" pi_cloud_instance_id = "%s" }`, pi_volume_name, pi_cloud_instance_id) diff --git a/website/docs/d/pi_volumes.html.markdown b/website/docs/d/pi_instance_volumes.html.markdown similarity index 63% rename from website/docs/d/pi_volumes.html.markdown rename to website/docs/d/pi_instance_volumes.html.markdown index 0b03724e11..fbfbca4761 100644 --- a/website/docs/d/pi_volumes.html.markdown +++ b/website/docs/d/pi_instance_volumes.html.markdown @@ -1,19 +1,19 @@ --- layout: "ibm" -page_title: "IBM: pi_volumes" -sidebar_current: "docs-ibm-datasources-pi-volumes" +page_title: "IBM: pi_instance_volumes" +sidebar_current: "docs-ibm-datasources-pi-instance-volumes" description: |- - Manages volumes in the Power Virtual Server Cloud. + Manages Instance volumes in the Power Virtual Server Cloud. --- -# ibm\_pi_volumes +# ibm\_pi_instance_volumes -Import the details of existing IBM Power Virtual Server Cloud volumes as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. +Import the details of existing IBM Power Virtual Server Cloud instance volumes as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. ## Example Usage ```hcl -data "ibm_pi_volumes" "ds_volumes" { +data "ibm_pi_instance_volumes" "ds_volumes" { pi_instance_name = "volume_1" pi_cloud_instance_id = "49fba6c9-23f8-40bc-9899-aca322ee7d5b" } diff --git a/website/ibm.erb b/website/ibm.erb index 0f3fa545f1..a9a21b8297 100755 --- a/website/ibm.erb +++ b/website/ibm.erb @@ -175,7 +175,10 @@ > pi_key - > + > + pi_network + + > pi_public_network > @@ -184,8 +187,8 @@ > pi_volume - > - pi_volumes + > + pi_instance_volumes