in functions/source/new_account_handler.py [0:0]
def list_org_roots():
'''List organization roots'''
value = None
root_info = list()
try:
root_info = ORG.list_roots()
except ClientError as exe:
LOGGER.error('Allowed only on Organizations root: %s', str(exe))
if 'Roots' in root_info:
value = root_info['Roots'][0]['Id']
else:
LOGGER.error('Unable to find valid root: %s ', root_info)
return value