'return a resource by name'

def _get(self, resource, name=None, selector=None):

    cmd = ['get', resource]
    if (selector is not None):
        cmd.append('--selector={}'.format(selector))
    elif (name is not None):
        cmd.append(name)
    cmd.extend(['-o', 'json'])
    rval = self.openshift_cmd(cmd, output=True)
    if ('items' in rval):
        rval['results'] = rval['items']
    elif (not isinstance(rval['results'], list)):
        rval['results'] = [rval['results']]
    return rval
