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
rc-5.3.0^2
commit 034aeca3f0

@ -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,
)

Loading…
Cancel
Save