()
return uptux_checks
Dynamically build list of checks to execute

    This function will grab, in order, all functions that start with
    'uptux_check_' and populate a list. This is then used to run the checks.
Dynamically build list of checks to execute
Dynamically build list of checks to execute
def build_checks_list():
    """Dynamically build list of checks to execute

    This function will grab, in order, all functions that start with
    'uptux_check_' and populate a list. This is then used to run the checks.
    """
    # Start to build a list of functions we will execute.
    uptux_checks = []

    # Get the name of this python script and all the functions inside it.
    current_module = sys.modules[__name__]
    all_functions = inspect.getmembers(current_module, inspect.isfunction)

    # If the function name matches 'uptux_check_' we will include it.
    for function in all_functions:
        function_name = function[0]
        function_object = function[1]
        if 'uptux_check_' in function_name:
            uptux_checks.append(function_object)

    # Use the helper function to sort by line number in script.
    uptux_checks.sort(key=get_function_order)

    # Return the sorted list of functions.
    return uptux_checks
def build_checks_list ( ) : # Start to build a list of functions we will execute. uptux_checks = [ ] # Get the name of this python script and all the functions inside it. current_module = sys . modules [ __name__ ] all_functions = inspect . getmembers ( current_module , inspect . isfunction ) # If the function name matches 'uptux_check_' we will include it. for function in all_functions : function_name = function [ 0 ] function_object = function [ 1 ] if 'uptux_check_' in function_name : uptux_checks . append ( function_object ) # Use the helper function to sort by line number in script. uptux_checks . sort ( key = get_function_order ) # Return the sorted list of functions. return uptux_checks