Correct a wrong docstring
The docstring for the require_admin_context method is stating the opposite of what the method actually does. Change-Id: Ifcb0af582acaa553feb8ab52bc4dd5529affcaaf
This commit is contained in:
parent
760ec42c6b
commit
4ec384dbec
|
@ -230,7 +230,7 @@ def is_user_context(context):
|
|||
|
||||
|
||||
def require_admin_context(ctxt):
|
||||
"""Raise exception.AdminRequired() if context is an admin context."""
|
||||
"""Raise exception.AdminRequired() if context is not an admin context."""
|
||||
if not ctxt.is_admin:
|
||||
raise exception.AdminRequired()
|
||||
|
||||
|
|
Loading…
Reference in New Issue