ironic.api.controllers.v1.notification_utils module

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.