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

cleanup of .keys() from dict_object.keys() *in* operator

Change-Id: I76b92514c6740a57bc7134015ac6197393913b25
This commit is contained in:
Manik Bindlish 2018-12-20 08:44:50 +00:00
parent 89d5d18234
commit 0868ded0eb
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,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')