def parse_simple_kv(*command):
    """Parses simple key:value output from specified command.

    :param command: A command to execute

    :returns: A dict of parsed key-value data
    """
    output = utils.execute(*command)
    lines = output[0].split('\n')
    info = {}

    for line in lines[:-1]:
        try:
            k, v = (l.strip() for l in line.split(':', 1))
        except __HOLE__:
            break
        else:
            info[k.lower()] = v

    return info
dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py/parse_simple_kv