Implemented audit.delete notification

In this changeset, I implemented the audit.delete notification.

Partially Implements: blueprint audit-versioned-notifications-api

Change-Id: I8aeb73f4b8d3273d6de7dc9c44674e3041b005ea
This commit is contained in:
Vincent Françoise
2016-11-04 10:09:46 +01:00
parent 0c0a9c84d6
commit 6f9f67cacc
6 changed files with 232 additions and 5 deletions

View File

@@ -283,3 +283,8 @@ class Audit(base.WatcherPersistentObject, base.WatcherObject,
self.dbapi.soft_delete_audit(self.uuid)
self.state = State.DELETED
self.save()
def _notify():
notifications.audit.send_delete(self._context, self)
_notify()