@staticmethod
def format_audit_settings(audit_settings, json_descriptors):
    print(f"Audit enabled: {audit_settings['auditdEnabled']}")
    print(f"UUID: {audit_settings['uid']}")
    print(f"Log path: {(audit_settings['logPath'] if ('logPath' in audit_settings) else 'N/A')}")
    print(f"Rotate interval: {audit_settings['rotateInterval']}")
    print(f"Rotate size: {audit_settings['rotateSize']}")
    print(f"Disabled users: {audit_settings['disabledUsers']}")
    if (not audit_settings['auditdEnabled']):
        return
    disable_map = {eventID for eventID in audit_settings['disabled']}
    json_descriptors.sort(key=itemgetter('module', 'id'))
    all_descriptors_sets = {events['id'] for events in json_descriptors}
    padding_name = 12
    for descriptor in json_descriptors:
        if (len(descriptor['name']) > padding_name):
            padding_name = len(descriptor['name'])
    padding_name += 2
    header = f"{'ID':<6}| {'Module':<15}| {'Name':<{padding_name}}| Enabled"
    print(header)
    print(('-' * len(header)))
    for descriptor in json_descriptors:
        print(f"{descriptor['id']:<6}| {descriptor['module']:<15}| {descriptor['name']:<{padding_name}}| {('False' if (descriptor['id'] in disable_map) else 'True')}")
    not_recognized = (disable_map - all_descriptors_sets)
    for unrecognized in not_recognized:
        print(f"{unrecognized:<6}| {'unknown':<15}| {'unknown':<{padding_name}}| False")
@staticmethod
def format_audit_settings(audit_settings, json_descriptors):
    print(f"Audit enabled: {audit_settings['auditdEnabled']}")
    print(f"UUID: {audit_settings['uid']}")
    print(f"Log path: {(audit_settings['logPath'] if ('logPath' in audit_settings) else 'N/A')}")
    print(f"Rotate interval: {audit_settings['rotateInterval']}")
    print(f"Rotate size: {audit_settings['rotateSize']}")
    print(f"Disabled users: {audit_settings['disabledUsers']}")
    if (not audit_settings['auditdEnabled']):
        return
    disable_map = {eventID for eventID in audit_settings['disabled']}
    json_descriptors.sort(key=itemgetter('module', 'id'))
    all_descriptors_sets = {events['id'] for events in json_descriptors}
    padding_name = 12
    for descriptor in json_descriptors:
        if (len(descriptor['name']) > padding_name):
            padding_name = len(descriptor['name'])
    padding_name += 2
    header = f"{'ID':<6}| {'Module':<15}| {'Name':<{padding_name}}| Enabled"
    print(header)
    print(('-' * len(header)))
    for descriptor in json_descriptors:
        print(f"{descriptor['id']:<6}| {descriptor['module']:<15}| {descriptor['name']:<{padding_name}}| {('False' if (descriptor['id'] in disable_map) else 'True')}")
    not_recognized = (disable_map - all_descriptors_sets)
    for unrecognized in not_recognized:
        print(f"{unrecognized:<6}| {'unknown':<15}| {'unknown':<{padding_name}}| False")