Skip to content

Commit d5feb68

Browse files
committed
Made mostly cosmetic changes.
1 parent 99dd4f9 commit d5feb68

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

Management-Utilities/Workload-Factory-API-Samples/list_bluexp_accts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ for cmd in jq curl; do
6565
exit 1
6666
fi
6767
done
68+
#
69+
# Check that all the required parameters are set.
70+
if [ -z "$REFRESH_TOKEN" ]; then
71+
cat >&2 <<EOF
72+
Error: A BlueXP refresh tokon is required to run this script.
73+
Can you be obtain from this web page:
74+
75+
https://services.cloud.netapp.com/refresh-token
76+
77+
EOF
78+
usage
79+
fi
6880

6981
token=$(get_token)
7082
if [ -z "$token" ]; then

Management-Utilities/Workload-Factory-API-Samples/list_bluexp_members

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ usage () {
1717
This script is used to list all the BlueXP members that are
1818
associated with the BlueXP account.
1919
20-
Usage is: $(basename $0) -t refresh_token -u bluexp_account_uuid
20+
Usage is: $(basename $0) -t refresh_token -u bluexp_account_uuid
2121
2222
Where: refresh_token - Is a refresh token used to obtain an access token needed
2323
to run the Workload Factory APIs. You can obtain a refresh
2424
token by going to https://services.cloud.netapp.com/refresh-token
2525
bluexp_account_uuid - The BlueXP account UUID to list the members for. You can
2626
find all the accounts you have access to by running the
2727
"list_bluexp_accts" script.
28-
-h - Displays this help message.
2928
3029
Note, instead of passing parameters on the command line, you can set the
3130
following environment variables instead:

Management-Utilities/Workload-Factory-API-Samples/volume_delete

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tmperr=$(mktemp /tmp/clone_volume-err.XXXXXX)
4949
trap 'rm -f $tmpout $tmperr' exit
5050

5151
skipFinalBackup="skipFinalBackup=true"
52-
while getopts "hbt:a:c:r:f:v:s:n:" opt; do
52+
while getopts "hbt:a:c:r:f:v:" opt; do
5353
case $opt in
5454
b) skipFinalBackup="skipFinalBackup=false" ;;
5555
t) REFRESH_TOKEN="$OPTARG" ;;

Management-Utilities/Workload-Factory-API-Samples/wf_utils

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ get_token() {
8585
# 4. Output file to write the response to
8686
# 5. Error output file to write errors to
8787
# 6. Data to send (for POST requests)
88+
# 7. Accept header (optional, defaults to "application/json, text/plain, */*")
8889
################################################################################
8990
run_curl () {
9091

0 commit comments

Comments
 (0)