pep8 and documentation
This commit is contained in:
@@ -54,8 +54,8 @@ def sts_get_accountid_all():
|
||||
account_userid = client.get_caller_identity()["UserId"]
|
||||
account_arn = client.get_caller_identity()["Arn"]
|
||||
print("Account Id: {}" .format(account_id))
|
||||
print("Account UserID: {}" .format(account_userid) )
|
||||
print("Account ARN: {}" .format(account_arn) )
|
||||
print("Account UserID: {}" .format(account_userid))
|
||||
print("Account ARN: {}" .format(account_arn))
|
||||
except botocore.exceptions.ClientError as e:
|
||||
if e.response['Error']['Code'] == 'InvalidClientTokenId':
|
||||
sys.exit("{} : The AWS KEY IS INVALID. Exiting" .format(AWS_ACCESS_KEY_ID))
|
||||
@@ -67,4 +67,4 @@ def sts_get_accountid_all():
|
||||
print("Unexpected error: {}" .format(e))
|
||||
except KeyboardInterrupt:
|
||||
print("CTRL-C received, exiting...")
|
||||
return account_id
|
||||
return account_id
|
||||
|
||||
Reference in New Issue
Block a user