'Lookup an ec2 keypair by access ID.'

def _find_ec2_keypair(self, access, user_id=None):

    credentials = self.client.credentials.list()
    for cr in credentials:
        ec2_creds = jsonutils.loads(cr.blob)
        if (ec2_creds.get('access') == access):
            return AccessKey(id=cr.id, access=ec2_creds['access'], secret=ec2_creds['secret'])
