Merge "dict_object.keys() is not required for *in* operator"

This commit is contained in:
Zuul 2019-01-29 20:02:09 +00:00 committed by Gerrit Code Review
commit 587f282243
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class PolicyAuthority(RbacAuthority):
whether the given role is contained in context_is_admin. If it is not
in the policy file, then default to context_is_admin: admin.
"""
if 'context_is_admin' in self.rules.keys():
if 'context_is_admin' in self.rules:
return self._allowed(
access=self._get_access_token(roles),
apply_rule='context_is_admin')