We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ceda701 + 4833e4d commit ef11322Copy full SHA for ef11322
1 file changed
scripts/pcs_rotate_service_account_access_key.py
@@ -84,10 +84,10 @@ def get_current_version(access_key_name):
84
85
# Safeguards.
86
87
-if current_access_key['id'].lower() == pc_api.username.lower():
+if current_access_key['id'].lower() == pc_api.identity.lower():
88
pc_utility.error_and_exit(500, 'This script cannot rotate its own Access Key')
89
90
-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():
91
92
93
if current_access_key['username'].lower() == current_user['email'].lower():
0 commit comments