summaryrefslogtreecommitdiff
path: root/ironic/common/context.py
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2021-03-04 11:12:17 -0800
committerJulia Kreger <juliaashleykreger@gmail.com>2021-03-17 15:27:46 +0000
commit426353c3f5665cfecaafe6f6ec3f1b583badd13d (patch)
tree737d19550d6ab7114b1c5a5a7cc20ed4ffb1461a /ironic/common/context.py
parent043de26884c4b0014b019d1112ea8af9fad37d30 (diff)
downloadironic-426353c3f5665cfecaafe6f6ec3f1b583badd13d.tar.gz
Deprecate legacy policies, update project scoped docs
Deprecates legacy policies which will be removed at a later point in time. Notes these in a release note which covers project scoped access enablement, and updates the Secure RBAC docs to cover additional details Special thanks to Rammstein Radio on Pandora, for without this and all of the amazing artists it brought to my coding jam sessions, this effort would not have reached any sort of conclusion in the relatively short time for such a massive amount of work. Change-Id: I3bf0fa0de07e19d6058f0299e7abbff91b48b360
Diffstat (limited to 'ironic/common/context.py')
-rw-r--r--ironic/common/context.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic/common/context.py b/ironic/common/context.py
index 4dbcea5bd..68b1d318a 100644
--- a/ironic/common/context.py
+++ b/ironic/common/context.py
@@ -52,6 +52,9 @@ class RequestContext(context.RequestContext):
def get_admin_context():
"""Create an administrator context."""
+ # TODO(TheJulia): Revise in Xena, is_admin should
+ # no longer be a default, much less passed as it is
+ # deprecated.
context = RequestContext(auth_token=None,
project_id=None,
is_admin=True,