Policy Engine For Nova.
Bases: nova.openstack.common.policy.Check
An explicit check for is_admin.
Whether or not roles contains ‘admin’ role according to policy setting.
Verifies that the action is valid on the target in this context.
Parameters: |
|
---|---|
Raises nova.exception.PolicyNotAuthorized: | |
if verification fails and do_raise is True. |
|
Returns: | returns a non-False value (not necessarily “True”) if authorized, and the exact value False if not authorized and do_raise is False. |