Fix notification doc generator

The doc generator only picked up the event types related to instance
actions because the doc generator looked up the registered notification
classes only. Until now, only the instance related notifications were
imported in the doc generation environment so the other notification
classes were not registered.

This commit explicitly imports the modules that defines the notification
classes to make the doc complete.

Change-Id: I269e05ddb62ec6c6cc7f7922c1344186ccf850d1
Closes-bug: #1640818
This commit is contained in:
Balazs Gibizer 2016-11-10 15:52:32 +01:00 committed by Stephen Finucane
parent b2fd340e46
commit b8897aba72
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ from docutils import nodes
from nova.notifications.objects import base as notification
from nova.objects import base
# Make sure that all the notification classes are defined so the
# registration mechanism can pick them up later.
from nova.notifications.objects import exception
from nova.notifications.objects import instance
from nova.notifications.objects import service
class VersionedNotificationDirective(Directive):