def delete_record(self, record):
        params = {'api_action': 'domain.resource.delete',
                  'DomainID': record.zone.id, 'ResourceID': record.id}

        self.connection.set_context(context={'resource': 'record',
                                             'id': record.id})
        data = self.connection.request(API_ROOT, params=params).objects[0]

        return data in 'ResourceID'
dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/linode.py/LinodeDNSDriver.delete_record/swapped operands of `in`