Fix logic of LB frontends updating in DecortController._lb_update_fronts method
This commit is contained in:
@@ -4724,11 +4724,14 @@ class DecortController(object):
|
||||
lb_bind, = list(filter(lambda i: i['name'] == bind['name'],lb_front['bindings']))
|
||||
del lb_bind['guid']
|
||||
|
||||
if not bind.get('address'):
|
||||
bind['address'] = bind_ip
|
||||
|
||||
if dict(sorted(bind.items())) != dict(sorted(lb_bind.items())):
|
||||
self._lb_bind_frontend(
|
||||
front,
|
||||
bind['name'],
|
||||
bind['address'] if "address" in bind else bind_ip,
|
||||
bind['address'],
|
||||
bind['port'],
|
||||
update=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user