customizations/AccountFactory/BatchUpdate/update_pp.py [36:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def error_and_exit(error_msg='ERROR'):
    '''Throw error and exit'''

    LOGGER.error(error_msg)
    sys.exit(1)

def error_and_continue(error_msg='ERROR'):
    '''Throw error and contiune'''

    LOGGER.error(error_msg)

def get_product_id():
    ''' Find the Product Id of AWS Control Tower Account Factory '''

    filters = {'Owner': ['AWS Control Tower']}
    af_product_name = 'AWS Control Tower Account Factory'
    key = 'ProductViewSummary'
    output = None

    try:
        search_list = SC.search_products_as_admin(Filters=filters)['ProductViewDetails']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



customizations/AccountFactory/EnrollAccount/enroll_account.py [56:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def error_and_exit(error_msg='ERROR'):
    '''Throw error and exit'''

    LOGGER.error(error_msg)
    sys.exit(1)


def error_and_continue(error_msg='ERROR'):
    '''Throw error and contiune'''

    LOGGER.error(error_msg)


def get_product_id():
    ''' Find the Product Id of AWS Control Tower Account Factory '''

    filters = {'Owner': ['AWS Control Tower']}
    af_product_name = 'AWS Control Tower Account Factory'
    key = 'ProductViewSummary'
    output = None

    try:
        search_list = SC.search_products_as_admin(Filters=filters)['ProductViewDetails']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



