'return pods for a node'

def get_pods_from_node(self, node, pod_selector=None):

    results = self._list_pods(node=[node], pod_selector=pod_selector)
    if (results['returncode'] != 0):
        return results
    all_pods = []
    if ('Listing    matched' in results['results']):
        listing_match = re.compile('\n^Listing    matched.*$\n', flags=re.MULTILINE)
        pods = listing_match.split(results['results'])
        for pod in pods:
            if pod:
                all_pods.extend(json.loads(pod)['items'])
    else:
        all_pods = json.loads(results['results'])['items']
    return all_pods
