'Retrieve all the node definitions. Returns: dict(name: node)'

def get_nodes_by_name(self):

    nodes_json = self.exec_oc('get    nodes    -o    json', [])
    try:
        nodes = json.loads(nodes_json)
    except ValueError:
        raise OpenShiftCheckException('BadOcNodeList', ('Could    not    obtain    a    list    of    nodes    to    validate    fluentd.\nOutput    from    oc    get:\n' + nodes_json))
    if ((not nodes) or (not nodes.get('items'))):
        raise OpenShiftCheckException('NoNodesDefined', 'No    nodes    appear    to    be    defined    according    to    the    API.')
    return {node['metadata']['name']: node for node in nodes['items']}
