Merge "Fix updating Policy LB pool with no members"

This commit is contained in:
Zuul 2019-04-23 12:39:44 +00:00 committed by Gerrit Code Review
commit aac80cab30

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'] = []