Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[caclmgrd] Don't crash if we find empty/null rule_props #2475

Merged
merged 2 commits into from
Jan 24, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions files/image_config/caclmgrd/caclmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ class ControlPlaneAclManager(object):
acl_rules = {}

for ((rule_table_name, rule_id), rule_props) in self._rules_db_info.iteritems():
if not rule_props:
jleveque marked this conversation as resolved.
Show resolved Hide resolved
log_warning("rule_props for rule_id {} empty or null!".format(rule_id))
continue

if rule_table_name == table_name:
acl_rules[rule_props["PRIORITY"]] = rule_props
jleveque marked this conversation as resolved.
Show resolved Hide resolved

Expand Down