in functions/source/new_account_handler.py [0:0]
def dyno_scan(table_name):
'''Return list of OUs in the organization'''
result = list()
try:
dyno_paginator = DYNO.get_paginator('scan')
dyno_page_iterator = dyno_paginator.paginate(TableName=table_name)
except ClientError as exe:
LOGGER.error('Unable to scan the table: %s', str(exe))
for page in dyno_page_iterator:
result += page['Items']
return result