From e051b80aad12f5813157a56d16126aa61c9b4bcf Mon Sep 17 00:00:00 2001 From: cktricky Date: Tue, 25 Sep 2018 17:08:47 -0400 Subject: [PATCH] updated. Fixes #59 --- weirdAAL.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weirdAAL.py b/weirdAAL.py index c79be88..387036f 100755 --- a/weirdAAL.py +++ b/weirdAAL.py @@ -122,6 +122,11 @@ def print_the_list(): print(tabulate(aws_rows, headers=['Cloud Provider', 'Service', 'Mod', 'Desc'])) print(tabulate(gcp_rows, headers=['Cloud Provider', 'Service', 'Mod', 'Desc'])) +if (args.list): + make_the_list() + print_the_list() + sys.exit(1) + # Need to figure out if we have keys in the ENV or not try: perform_credential_check() @@ -129,10 +134,6 @@ except: print("Check the above error message and fix to use weirdAAL") sys.exit(1) -if (args.list): - make_the_list() - print_the_list() - # arg_list has to be defined otherwise will cause an exception arg_list = None