diff options
Diffstat (limited to 'openstack/common/policy.py')
-rw-r--r-- | openstack/common/policy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/policy.py b/openstack/common/policy.py index 21ea010..cd6dcfc 100644 --- a/openstack/common/policy.py +++ b/openstack/common/policy.py @@ -437,7 +437,7 @@ def _parse_list_rule(rule): or_list.append(AndCheck(and_list)) # If we have only one check, omit the "or" - if len(or_list) == 0: + if not or_list: return FalseCheck() elif len(or_list) == 1: return or_list[0] |