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:
Andrea Rosa 2015-08-20 17:05:11 +01:00
parent 760ec42c6b
commit 4ec384dbec
1 changed files with 1 additions and 1 deletions

View File

@ -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()