diff --git a/oslo_policy/_parser.py b/oslo_policy/_parser.py index dfa51415..5a6eab63 100644 --- a/oslo_policy/_parser.py +++ b/oslo_policy/_parser.py @@ -228,7 +228,7 @@ def _parse_list_rule(rule): # Outer list is joined by "or"; inner list by "and" or_list = [] for inner_rule in rule: - # Elide empty inner lists + # Skip empty inner lists if not inner_rule: continue diff --git a/oslo_policy/policy.py b/oslo_policy/policy.py index 87aad7c5..c264b511 100644 --- a/oslo_policy/policy.py +++ b/oslo_policy/policy.py @@ -409,7 +409,7 @@ class Enforcer(object): {'path': path}) def _get_policy_path(self, path): - """Locate the policy json data file/path. + """Locate the policy JSON data file/path. :param path: It's value can be a full path or related path. When full path specified, this function just returns the full