Merge branch 'BANS-391' into 'dev_bsgroup_rc-5.2.6'
Fix adding networks logic in DecortController.group_provision method See merge request rudecs/dev/decort-ansible!74
This commit is contained in:
@@ -3987,11 +3987,7 @@ class DecortController(object):
|
||||
):
|
||||
|
||||
self.result['waypoints'] = "{} -> {}".format(self.result['waypoints'], "group_provision")
|
||||
|
||||
list_vins= list()
|
||||
for net in arg_network:
|
||||
if net['type'] == 'VINS':
|
||||
list_vins.append(net['id'])
|
||||
|
||||
api_url = "/restmachine/cloudapi/bservice/groupAdd"
|
||||
api_params = dict(
|
||||
serviceId = bs_id,
|
||||
@@ -4003,7 +3999,8 @@ class DecortController(object):
|
||||
imageId = arg_image_id,
|
||||
driver = arg_driver,
|
||||
role = arg_role,
|
||||
vinses = list_vins,
|
||||
vinses = [n['id'] for n in arg_network if n['type'] == 'VINS'],
|
||||
extnets = [n['id'] for n in arg_network if n['type'] == 'EXTNET'],
|
||||
timeoutStart = arg_timeout
|
||||
)
|
||||
api_resp = self.decort_api_call(requests.post, api_url, api_params)
|
||||
|
||||
Reference in New Issue
Block a user