'Find an existing secret.'

def get_secret(self):

    try:
        secrets = self.client.secrets(filters={'name': self.name})
    except APIError as exc:
        self.client.fail(('Error    accessing    secret    %s:    %s' % (self.name, to_native(exc))))
    for secret in secrets:
        if (secret['Spec']['Name'] == self.name):
            return secret
    return None
