Fix updating Policy LB pool with no members

Change-Id: I35e99bcd7ad2399196ec6040d5e0bc2ca4e0c762
This commit is contained in:
Adit Sarfaty 2019-04-22 09:18:19 +03:00
parent a92a32b619
commit cd305ac756

View File

@ -192,6 +192,8 @@ class LBPoolDef(ResourceDef):
body, ['active_monitor_paths',
'algorithm', 'member_group', 'snat_translation'])
members = self.get_attr('members')
if members is None:
members = []
if self.has_attr('members'):
members = members if isinstance(members, list) else [members]
body['members'] = []