Skip to content

Commit

Permalink
Fix datasource power instance volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare authored and sakshiag committed Oct 21, 2019
1 parent 7bad0da commit b30eee7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ibm/data_source_ibm_pi_volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
},
},
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down
9 changes: 6 additions & 3 deletions website/ibm.erb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@
<li<%= sidebar_current("docs-ibm-datasource-pi-key") %>>
<a href="/docs/providers/ibm/d/pi_key.html">pi_key</a>
</li>
<li<%= sidebar_current("docs-ibm-datasource-pi-public_-network") %>>
<li<%= sidebar_current("docs-ibm-datasource-pi-network") %>>
<a href="/docs/providers/ibm/d/pi_network.html">pi_network</a>
</li>
<li<%= sidebar_current("docs-ibm-datasource-pi-public-network") %>>
<a href="/docs/providers/ibm/d/pi_public_network.html">pi_public_network</a>
</li>
<li<%= sidebar_current("docs-ibm-datasource-pi-tenant") %>>
Expand All @@ -184,8 +187,8 @@
<li<%= sidebar_current("docs-ibm-datasource-pi-volume") %>>
<a href="/docs/providers/ibm/d/pi_volume.html">pi_volume</a>
</li>
<li<%= sidebar_current("docs-ibm-datasource-pi-volumes") %>>
<a href="/docs/providers/ibm/d/pi_volumes.html">pi_volumes</a>
<li<%= sidebar_current("docs-ibm-datasource-pi-instance-volumes") %>>
<a href="/docs/providers/ibm/d/pi_instance_volumes.html">pi_instance_volumes</a>
</li>
</ul>
</li>
Expand Down

0 comments on commit b30eee7

Please sign in to comment.