Fix create-member while retrieving PTG details
Conditionally process prox_group_id and proxied_group_id. Change-Id: Ic810c6a11a7e46e9b916eadda77a9157a6fa84c0 Closes-bug: #1627883
This commit is contained in:
parent
3bd464bf51
commit
72d30c8265
|
@ -429,10 +429,10 @@ class SetGroupAction(workflows.Action):
|
|||
pt_list = []
|
||||
pts = client.policy_target_list(request,
|
||||
tenant_id=request.user.tenant_id)
|
||||
proxy_groups = [pt.proxy_group_id for pt in pts
|
||||
if pt.proxy_group_id]
|
||||
proxy_groups = [pt.get('proxy_group_id') for pt in pts
|
||||
if pt.get('proxy_group_id')]
|
||||
for pt in pts:
|
||||
if pt.id in proxy_groups or pt.proxied_group_id:
|
||||
if pt.id in proxy_groups or pt.get('proxied_group_id'):
|
||||
continue
|
||||
pt.set_id_as_name_if_empty()
|
||||
subnet_dedails = None
|
||||
|
|
Loading…
Reference in New Issue