ironic.api.controllers.v1.notification_utils module¶
-
ironic.api.controllers.v1.notification_utils.
emit_end_notification
(context, obj, action, **kwargs)[source]¶ Helper for emitting API ‘end’ notifications.
- Parameters
context – request context.
obj – resource rpc object.
action – Action string to go in the EventType.
kwargs – kwargs to use when creating the notification payload.
-
ironic.api.controllers.v1.notification_utils.
emit_start_notification
(context, obj, action, **kwargs)[source]¶ Helper for emitting API ‘start’ notifications.
- Parameters
context – request context.
obj – resource rpc object.
action – Action string to go in the EventType.
kwargs – kwargs to use when creating the notification payload.
-
ironic.api.controllers.v1.notification_utils.
handle_error_notification
(context, obj, action, **kwargs)[source]¶ Context manager to handle any error notifications.
- Parameters
context – request context.
obj – resource rpc object.
action – Action string to go in the EventType.
kwargs – kwargs to use when creating the notification payload.