From 76e08f58ed6aceef0c30c97762e4a94ce35fbcb7 Mon Sep 17 00:00:00 2001 From: Chris Gates Date: Tue, 22 May 2018 06:48:03 -0400 Subject: [PATCH] Update sts.py ref https://github.com/carnal0wnage/weirdAAL/pull/46#pullrequestreview-122111997 --- libs/sts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sts.py b/libs/sts.py index f81b038..a56dc63 100644 --- a/libs/sts.py +++ b/libs/sts.py @@ -33,7 +33,7 @@ def sts_get_accountid(): if e.response['Error']['Code'] == 'InvalidClientTokenId': sys.exit("{} : The AWS KEY IS INVALID. Exiting" .format(AWS_ACCESS_KEY_ID)) elif e.response['Error']['Code'] == 'EndpointConnectionError': - print("[-] Cant connect to the {} endpoint [-]" .format(region)) + print("[-] Cant connect to the region endpoint [-]") elif e.response['Error']['Code'] == 'SubscriptionRequiredException': print('{} : Has permissions but isnt signed up for service - usually means you have a root account' .format(AWS_ACCESS_KEY_ID)) else: @@ -60,7 +60,7 @@ def sts_get_accountid_all(): if e.response['Error']['Code'] == 'InvalidClientTokenId': sys.exit("{} : The AWS KEY IS INVALID. Exiting" .format(AWS_ACCESS_KEY_ID)) elif e.response['Error']['Code'] == 'EndpointConnectionError': - print("[-] Cant connect to the {} endpoint [-]" .format(region)) + print("[-] Cant connect to the region endpoint [-]") elif e.response['Error']['Code'] == 'SubscriptionRequiredException': print('{} : Has permissions but isnt signed up for service - usually means you have a root account' .format(AWS_ACCESS_KEY_ID)) else: