Skip to content

Commit 2c98ea7

Browse files
authored
fix: update made to the reset_iks_api_key.sh script to pass when a 200 status code is returned from api (#586)
1 parent 3ac5ced commit 2c98ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/reset_iks_api_key.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if [ "${reset}" == true ]; then
8888
status_code=$(echo "$result" | head -n 1 | cut -d$' ' -f2)
8989
fi
9090

91-
if [ "${status_code}" == "204" ]; then
91+
if [ "${status_code}" == "204" ] || [ "${status_code}" == "200" ]; then
9292
echo "The IAM API key is successfully reset."
9393
else
9494
echo "ERROR:: FAILED TO RESET THE IAM API KEY"

0 commit comments

Comments
 (0)