The ironic.common.context Module

The ironic.common.context Module

class ironic.common.context.RequestContext(is_public_api=False, **kwargs)[source]

Bases: oslo_context.context.RequestContext

Extends security contexts from the oslo.context library.


Ensure threading contains context

For async/periodic tasks, the context of local thread is missing. Set it with request context and this is useful to log the request_id in log messages.

classmethod from_dict(values, **kwargs)[source]
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.