From b8897aba72497548934c4c9bb5a107c027bf0674 Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Thu, 10 Nov 2016 15:52:32 +0100 Subject: [PATCH] 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 --- doc/ext/versioned_notifications.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/ext/versioned_notifications.py b/doc/ext/versioned_notifications.py index d3f017a884bb..89acb76b8515 100644 --- a/doc/ext/versioned_notifications.py +++ b/doc/ext/versioned_notifications.py @@ -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):