'return a secret by name'

def get(self):

    results = self._get('secrets', self.name)
    results['decoded'] = {}
    results['exists'] = False
    if ((results['returncode'] == 0) and results['results'][0]):
        results['exists'] = True
        if self.decode:
            if ('data' in results['results'][0]):
                for (sname, value) in results['results'][0]['data'].items():
                    results['decoded'][sname] = base64.b64decode(value)
    if ((results['returncode'] != 0) and (('"%s"    not    found' % self.name) in results['stderr'])):
        results['returncode'] = 0
    return results
