Skip to content

Commit

Permalink
update class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaPerakis committed Apr 5, 2024
1 parent d53d685 commit 4833e4d
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 4833e4d

Please sign in to comment.