Skip to content

Commit b0bfda2

Browse files
Fix new pylint errors
Fix the following new errors detected by pylint 3.2.0. - possibly-used-before-assignment Change-Id: I06a5695e7e3ad3d645b81771cc1248046fdf8d68
1 parent f034bab commit b0bfda2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ovn_octavia_provider/driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def member_batch_update(self, pool_id, members):
391391
existing_members = pool.split(',') if pool else []
392392
members_to_delete = copy.copy(existing_members)
393393
pool_subnet_id = None
394+
pool_subnet_cidr = None
394395
for member in members:
395396
# NOTE(froyo): in order to keep sync with Octavia DB, we raise
396397
# not supporting exceptions as soon as posible, considering the

ovn_octavia_provider/helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ def _get_lb_to_ls_association_commands(self, ovn_lb, network_id=None,
638638
This function deals with updating the References of Logical Switch
639639
in LB and addition of LB to LS.
640640
"""
641+
ovn_ls = None
641642
commands = []
642643
if not network_id and not subnet_id:
643644
return commands
@@ -653,7 +654,6 @@ def _get_lb_to_ls_association_commands(self, ovn_lb, network_id=None,
653654
LOG.warning('Subnet %s not found while trying to '
654655
'fetch its data.', subnet_id)
655656
ls_name = None
656-
ovn_ls = None
657657

658658
if ls_name:
659659
try:
@@ -667,7 +667,6 @@ def _get_lb_to_ls_association_commands(self, ovn_lb, network_id=None,
667667
'not found in OVN NBDB. Exiting.',
668668
{'ls': ls_name, 'lb': ovn_lb.name})
669669
return commands
670-
ovn_ls = None
671670

672671
ls_refs = ovn_lb.external_ids.get(ovn_const.LB_EXT_IDS_LS_REFS_KEY)
673672
if ls_refs:

0 commit comments

Comments
 (0)