pep8 and documentation

This commit is contained in:
carnal0wnage
2018-05-02 22:44:58 -04:00
parent 194bf3389a
commit 1c633fe216
48 changed files with 505 additions and 186 deletions

View File

@@ -22,11 +22,13 @@ AWS_ACCESS_KEY_ID = credentials.access_key
def list_clusters():
'''
List EMR Clusters
'''
print("### Printing EMR Clusters ###")
try:
for region in regions:
client = boto3.client('emr', region_name=region)
response = client.list_clusters()
if response.get('Clusters') is None:
@@ -53,13 +55,14 @@ def list_clusters():
def list_security_configurations():
'''
List EMR Security Configurations
'''
print("### Printing EMR Security Configuration ###")
try:
for region in regions:
client = boto3.client('emr', region_name=region)
response = client.list_security_configurations()
# print(response)
if response.get('SecurityConfigurations') is None: