Comment 3 for bug 1242620

Revision history for this message
Victor Morales (electrocucaracha) wrote :

Just by curiosity, in the function displayed above, the first and third "if" sentences are identical, is that correct?

def _add_to_revocation_list(self, data):
        data_json = jsonutils.dumps(data)
        if not self.client.append(self.revocation_key, ',%s' % data_json):
            if not self.client.add(self.revocation_key, data_json):
                if not self.client.append(self.revocation_key,
                                          ',%s' % data_json):
                    msg = _('Unable to add token to revocation list.')
                    raise exception.UnexpectedError(msg)