Skip to content

Commit b25140d

Browse files
committed
ATLAS_TOKEN in deleteWorkspace.sh
1 parent 2fef2ca commit b25140d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operations/automation-script/deleteWorkspace.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Script to delete the workspace created by the loadAndRunWorkspace.sh script
33

4-
# Make sure ATLAS_TOKEN environment variable is set
4+
# Make sure TFE_TOKEN environment variable is set
55
# to owners team token for organization
66

77
# Set address if using private Terraform Enterprise server.
@@ -21,7 +21,7 @@ fi
2121

2222
# Try to delete the workspace.
2323
echo "Attempting to delete the workspace"
24-
delete_workspace_result=$(curl --header "Authorization: Bearer $ATLAS_TOKEN" --header "Content-Type: application/vnd.api+json" --request DELETE "https://${address}/api/v2/organizations/${organization}/workspaces/${workspace}")
24+
delete_workspace_result=$(curl --header "Authorization: Bearer $TFE_TOKEN" --header "Content-Type: application/vnd.api+json" --request DELETE "https://${address}/api/v2/organizations/${organization}/workspaces/${workspace}")
2525

2626
# Get the response from the TFE server
2727
# Note that successful deletion will give a null response.

0 commit comments

Comments
 (0)