Skip to content

Commit 45e9394

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix set None to ovn_lb in hm_sync"
2 parents 032837c + ae39923 commit 45e9394

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ovn_octavia_provider/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3787,7 +3787,8 @@ def hm_sync(self, hm, ovn_lb, pool_key):
37873787
:param ovn_lb: The OVN LoadBalancer object that needs to be sync
37883788
:param pool_key: The pool_key where health monitor is associated
37893789
"""
3790-
lbhcs, ovn_lb = self._find_ovn_lb_from_hm_id(hm[constants.ID])
3790+
lbhcs, _ovn_lb = self._find_ovn_lb_from_hm_id(hm[constants.ID])
3791+
ovn_lb = _ovn_lb if _ovn_lb else ovn_lb
37913792
if not lbhcs:
37923793
LOG.debug("Loadbalancer health check %s not found!",
37933794
hm[constants.ID])

0 commit comments

Comments
 (0)