

def parse_simple_kv(*command):
    'Parses simple key:value output from specified command.\n\n    :param command: A command to execute\n\n    :returns: A dict of parsed key-value data\n    '
    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 ValueError:
            break
        else:
            info[k.lower()] = v
    return info

dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py parse_simple_kv/original