Compare commits
3 Commits
gcp_testin
...
change_cre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de7acc8acb | ||
|
|
dcc62019bc | ||
|
|
104118b280 |
17
weirdAAL.py
17
weirdAAL.py
@@ -42,8 +42,17 @@ builtins.db_name = "weirdAAL.db"
|
|||||||
|
|
||||||
def perform_credential_check():
|
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
|
Depending on the module, we determine which type of
|
||||||
We are letting boto3 do all the work that way we can handle session tokens natively
|
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:
|
try:
|
||||||
@@ -56,6 +65,9 @@ def perform_credential_check():
|
|||||||
print("The AWS Access Keys are not valid/active")
|
print("The AWS Access Keys are not valid/active")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
def gcp_cred_check():
|
||||||
|
pass
|
||||||
|
|
||||||
def method_create():
|
def method_create():
|
||||||
try:
|
try:
|
||||||
arg = globals()["module_" + args.module]
|
arg = globals()["module_" + args.module]
|
||||||
@@ -110,6 +122,7 @@ def make_tabulate_rows(hash, cloud_provider):
|
|||||||
for item in hash[key]:
|
for item in hash[key]:
|
||||||
for (k,v) in item.items():
|
for (k,v) in item.items():
|
||||||
normalized_comment = normalize_comments(v)
|
normalized_comment = normalize_comments(v)
|
||||||
|
k = re.sub("module_", "", k)
|
||||||
entire_contents.append([cloud_provider, key, k, normalized_comment])
|
entire_contents.append([cloud_provider, key, k, normalized_comment])
|
||||||
|
|
||||||
return entire_contents
|
return entire_contents
|
||||||
|
|||||||
Reference in New Issue
Block a user