Merge "Octavia driver: rule list can be None in L7 policy" into stable/victoria

This commit is contained in:
Zuul 2021-04-28 13:47:23 +00:00 committed by Gerrit Code Review
commit 6e7ad52e15
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ class NSXOctaviaDriver(driver_base.ProviderDriver):
# During create operations, the created rule will not be
# retrieved from Octavia DB, as it is updated later on
if policy_dict.get('rules') is None:
policy_dict['rules'] = []
if (obj_dict['l7rule_id'] not in
[r['l7rule_id'] for r in
policy_dict.get('rules', [])]):