From de7acc8acbc436e86b9d9bd3fcf87414a8b1b6c5 Mon Sep 17 00:00:00 2001 From: cktricky Date: Fri, 28 Sep 2018 11:35:56 -0700 Subject: [PATCH] in the process of trying to do both an aws and gcp module check --- weirdAAL.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/weirdAAL.py b/weirdAAL.py index ebd955f..c879d29 100755 --- a/weirdAAL.py +++ b/weirdAAL.py @@ -42,8 +42,17 @@ builtins.db_name = "weirdAAL.db" def perform_credential_check(): ''' - Check that the AWS keys work before we go any further. It picks the keys up from the local .env file - We are letting boto3 do all the work that way we can handle session tokens natively + Depending on the module, we determine which type of + credential check we perform. + ''' + pass + +def aws_cred_check(): + ''' + Check that the AWS keys work before we go any further. + It picks the keys up from the local .env file + We are letting boto3 do all the work that way we can + handle session tokens natively ''' try: @@ -56,6 +65,9 @@ def perform_credential_check(): print("The AWS Access Keys are not valid/active") sys.exit(1) +def gcp_cred_check(): + pass + def method_create(): try: arg = globals()["module_" + args.module]