Merge branch 'BANS-324' into 'dev_rc-5.2.6'
Fix logic of LB frontends updating in DecortController._lb_update_fronts method See merge request rudecs/dev/decort-ansible!55
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']))
|
lb_bind, = list(filter(lambda i: i['name'] == bind['name'],lb_front['bindings']))
|
||||||
del lb_bind['guid']
|
del lb_bind['guid']
|
||||||
|
|
||||||
|
if not bind.get('address'):
|
||||||
|
bind['address'] = bind_ip
|
||||||
|
|
||||||
if dict(sorted(bind.items())) != dict(sorted(lb_bind.items())):
|
if dict(sorted(bind.items())) != dict(sorted(lb_bind.items())):
|
||||||
self._lb_bind_frontend(
|
self._lb_bind_frontend(
|
||||||
front,
|
front,
|
||||||
bind['name'],
|
bind['name'],
|
||||||
bind['address'] if "address" in bind else bind_ip,
|
bind['address'],
|
||||||
bind['port'],
|
bind['port'],
|
||||||
update=True,
|
update=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user