def get_account_info()

in customizations/AccountFactory/EnrollAccount/enroll_account.py [0:0]


def get_account_info(managed_ou, account_email=None, account_id=None):
    '''Generate data file from account_email and account_id'''

    result = {}

    if account_email:
        # check for valid email ID
        (account_id, account_name, account_email) = get_account_mapping(account_email=account_email)
    elif account_id:
        # check for value account ID
        (account_id, account_name, account_email) = get_account_mapping(account_id=account_id)

    result[account_id] = generate_data(account_email, account_name, managed_ou)

    return result