Skip to content

Commit 21f1050

Browse files
committed
Added support for deleting a volume with an S3 Access Point.
1 parent 5789095 commit 21f1050

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Management-Utilities/fsx-ontap-aws-cli-scripts/delete_fsxn_volume

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ EOF
3131
}
3232

3333
################################################################################
34-
# This function waits for the volume to be deleted.
34+
# This function waits for the an s3 access point attached to a volume
35+
# to be deleted.
3536
################################################################################
3637
waitForS3ApDelete () {
3738

@@ -47,7 +48,7 @@ waitForS3ApDelete () {
4748
if [ $? -eq 0 ]; then
4849
status=$(jq -r .S3AccessPointAttachments[0].Lifecycle $tmpout 2> /dev/null)
4950
if [ "$status" != "DELETING" -a "$status" != "PENDING" ]; then
50-
printf "\nError, failed to delete volume S3 endpoint $s3ApName attached to volume ID '$volumeId'. Status = ${status}.\n" 1>&2
51+
printf "\nError, failed to delete volume S3 Access Point $s3ApName attached to volume ID '$volumeId'. Status = ${status}.\n" 1>&2
5152
reason="$(jq -r '.S3AccessPointAttachments[0].LifecycleTransitionReason.Message' $tmpout 2> /dev/null)"
5253
if [ ! -z "$reason" ]; then
5354
echo "Reason: $reason" 1>&2

0 commit comments

Comments
 (0)