'Update a Rackspace CloudDns Instance.'

def handle_update(self, json_snippet, tmpl_diff, prop_diff):

    LOG.debug('CloudDns    handle_update    called.')
    if (not self.resource_id):
        raise exception.Error(_('Update    called    on    a    non-existent    domain'))
    if prop_diff:
        dom = self.cloud_dns().get(self.resource_id)
        records = prop_diff.pop(self.RECORDS, {})
    if prop_diff:
        dom.update(**prop_diff)
    if records:
        recs = dom.list_records()
        [rec.delete() for rec in recs if ((rec.type != 'NS') or ('stabletransit.com' not in rec.data))]
        dom.add_records(records)
