1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-19 19:01:57 +00:00

fix(aws): correct access key disable command (#11671)

This commit is contained in:
Mark Keisler 2023-05-06 06:40:06 -05:00 committed by GitHub
parent c5208867f1
commit 017e288560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ function aws_change_access_key() {
case $yn in case $yn in
[Yy]*) [Yy]*)
echo -n "\nDisabling access key ${original_aws_access_key_id}..." echo -n "\nDisabling access key ${original_aws_access_key_id}..."
if aws --no-cli-pager update-access-key --access-key-id ${original_aws_access_key_id} --status Inactive; then if aws --no-cli-pager iam update-access-key --access-key-id ${original_aws_access_key_id} --status Inactive; then
echo "done." echo "done."
else else
echo "\nFailed to disable ${original_aws_access_key_id} key." echo "\nFailed to disable ${original_aws_access_key_id} key."