_node_handler.py 429 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

"""SuperBench CLI node subgroup command handler."""

from superbench.tools import SystemInfo


def info_command_handler():
    """Get node hardware info.

    Returns:
        dict: node info.
    """
    try:
        info = SystemInfo().get_all()
    except Exception as ex:
        raise RuntimeError('Failed to get node info.') from ex
    return info