def get_osinfo(ns):
    tf = TableFormatter(stdout, 0, True, {0: FIRST_COLUMN_MIN_SIZE})

    try:
        os = get_single_instance(ns, 'PG_OperatingSystem')
    except Exception:
        result = [(get_colored_string('error:', RED_COLOR),
                    'Missing class PG_OperatingSystem on the server.')]
        tf.produce_output(result)
        return []

    os_str = ''
    kernel_str = ''
    if os:
        os_str = os.Caption
        kernel_str = os.Version
    if not os_str:
        os_str = 'N/A'
    if not kernel_str:
        kernel_str = 'N/A'

    result = [
        ('OS:', os_str),
        ('Kernel:', kernel_str)]
    tf.produce_output(result)
    return []
Exits the Thespian shell immediately; no shutdown or cleanup of ActorSystems or Actors.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/system/lmi/scripts/system/__init__.py/get_osinfo--crossover with--dataset/ETHPy150Open godaddy/Thespian/thespian/shell.py/ThespianShell.do_EOF