From f2ecf84cf6a20821dedc722131a784d08d592d20 Mon Sep 17 00:00:00 2001 From: Axel Ismirlian Date: Tue, 15 Oct 2024 08:51:11 -0500 Subject: [PATCH] Remove unnecessary states in volume-bulk and update markdown --- ibm/service/power/resource_ibm_pi_volume_bulk.go | 6 +++--- website/docs/r/pi_volume.html.markdown | 2 +- website/docs/r/pi_volume_bulk.html.markdown | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ibm/service/power/resource_ibm_pi_volume_bulk.go b/ibm/service/power/resource_ibm_pi_volume_bulk.go index 08f4ef34f2..4f7b0857b4 100644 --- a/ibm/service/power/resource_ibm_pi_volume_bulk.go +++ b/ibm/service/power/resource_ibm_pi_volume_bulk.go @@ -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 @@ -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, @@ -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, diff --git a/website/docs/r/pi_volume.html.markdown b/website/docs/r/pi_volume.html.markdown index 6737608882..1341e91b11 100644 --- a/website/docs/r/pi_volume.html.markdown +++ b/website/docs/r/pi_volume.html.markdown @@ -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 diff --git a/website/docs/r/pi_volume_bulk.html.markdown b/website/docs/r/pi_volume_bulk.html.markdown index 52fb447f08..e3bfeeeaac 100644 --- a/website/docs/r/pi_volume_bulk.html.markdown +++ b/website/docs/r/pi_volume_bulk.html.markdown @@ -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"{