Skip to content

Commit

Permalink
Merge pull request #171 from joshuaPerakis/main
Browse files Browse the repository at this point in the history
update class attribute
  • Loading branch information
SimOnPanw committed May 22, 2024
2 parents ceda701 + 4833e4d commit ef11322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pcs_rotate_service_account_access_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def get_current_version(access_key_name):

# Safeguards.

if current_access_key['id'].lower() == pc_api.username.lower():
if current_access_key['id'].lower() == pc_api.identity.lower():
pc_utility.error_and_exit(500, 'This script cannot rotate its own Access Key')

if previous_access_key and previous_access_key['id'].lower() == pc_api.username.lower():
if previous_access_key and previous_access_key['id'].lower() == pc_api.identity.lower():
pc_utility.error_and_exit(500, 'This script cannot rotate its own Access Key')

if current_access_key['username'].lower() == current_user['email'].lower():
Expand Down

0 comments on commit ef11322

Please sign in to comment.