def filter_logs(opts_to_log, remove_dots=True):
    '\n    Filters out keys containing certain patterns to avoid sensitive information being sent to logs\n    Works on dictionaries and lists\n    This function was located at extmods/modules/conf_publisher.py previously\n    '
    filtered_conf = _remove_sensitive_info(opts_to_log, PATTERNS_TO_FILTER)
    if remove_dots:
        for key in filtered_conf.keys():
            if ('.' in key):
                filtered_conf[key.replace('.', '_')] = filtered_conf.pop(key)
    return filtered_conf
Filters out keys containing certain patterns to avoid sensitive information being sent to logs
Works on dictionaries and lists
This function was located at extmods/modules/conf_publisher.py previously
def filter_logs(opts_to_log, remove_dots=True):
    '\n    Filters out keys containing certain patterns to avoid sensitive information being sent to logs\n    Works on dictionaries and lists\n    This function was located at extmods/modules/conf_publisher.py previously\n    '
    filtered_conf = _remove_sensitive_info(opts_to_log, PATTERNS_TO_FILTER)
    if remove_dots:
        for key in filtered_conf.keys():
            if ('.' in key):
                filtered_conf[key.replace('.', '_')] = filtered_conf.pop(key)
    return filtered_conf