Skip to content

Commit

Permalink
Remove unnecessary states in volume-bulk and update markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ismirlia committed Oct 15, 2024
1 parent 2efa504 commit f2ecf84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ibm/service/power/resource_ibm_pi_volume_bulk.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2017, 2021 All Rights Reserved.
// Copyright IBM Corp. 2024 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package power
Expand Down Expand Up @@ -469,7 +469,7 @@ func isWaitForIBMPIVolumeBulkAvailable(ctx context.Context, client *instance.IBM
log.Printf("Waiting for Volume (%s) to be available.", id)

stateConf := &retry.StateChangeConf{
Pending: []string{State_Retry, State_Creating},
Pending: []string{State_Creating},
Target: []string{State_Available},
Refresh: isIBMPIVolumeBulkRefreshFunc(client, id),
Delay: 10 * time.Second,
Expand Down Expand Up @@ -497,7 +497,7 @@ func isIBMPIVolumeBulkRefreshFunc(client *instance.IBMPIVolumeClient, id string)

func isWaitForIBMPIVolumeBulkDeleted(ctx context.Context, client *instance.IBMPIVolumeClient, id string, timeout time.Duration) (interface{}, error) {
stateConf := &retry.StateChangeConf{
Pending: []string{State_Deleting, State_Creating},
Pending: []string{State_Deleting},
Target: []string{State_Deleted},
Refresh: isIBMPIVolumeBulkDeleteRefreshFunc(client, id),
Delay: 10 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/pi_volume.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |-

# ibm_pi_volume

Create, update, or delete a volume to attach it to a Power Systems Virtual Server instance. For more information, about managing volume, see [cloning a volume](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-volume-snapshot-clone#cloning-volume).
Create, update, or delete a volume to attach it to a Power Systems Virtual Server instance. For more information, about managing volume, see [cloning a volume](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-snapshots-cloning).

## Example usage

Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/pi_volume_bulk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ description: |-

# ibm_pi_volume_bulk

Create, update, or delete a volume to attach it to a Power Systems Virtual Server instance. For more information, about managing volume, see [cloning a volume](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-volume-snapshot-clone#cloning-volume).
Create, update, or delete a volume to attach it to a Power Systems Virtual Server instance. For more information, about managing volume, see [cloning a volume](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-snapshots-cloning).

## Example usage

The following example creates a 20 GB volume.
The following example creates 3 20 GB volumes.

```terraform
resource "ibm_pi_volume_bulk" "testacc_volume"{
Expand Down

0 comments on commit f2ecf84

Please sign in to comment.