global vars for db_name and target

This commit is contained in:
cktricky
2018-04-21 14:15:35 -04:00
parent bda996a3ce
commit 283bb147fe
6 changed files with 15 additions and 19 deletions

View File

@@ -11,9 +11,6 @@ import time
from libs.sql import *
# we chould probably load this from one place in the future #TODO
db_name = "weirdAAL.db"
pp = pprint.PrettyPrinter(indent=5, width=80)
# from http://docs.aws.amazon.com/general/latest/gr/rande.html
@@ -423,7 +420,7 @@ def get_console_screenshot_all_region(region):
def get_console_screenshot_all_region_list(file,region):
try:
client = boto3.client('ec2', region_name=region)
alist = [line.rstrip() for line in open(file)]
for line in alist:
try:
@@ -578,7 +575,7 @@ def get_console_output_all_region(region):
def get_console_output_all_region_list(file,region):
try:
client = boto3.client('ec2', region_name=region)
alist = [line.rstrip() for line in open(file)]
for line in alist:
try: