fix 1
This commit is contained in:
@@ -1206,6 +1206,7 @@ class DecortController(object):
|
|||||||
api_params = dict(computeId=comp_dict['id'],
|
api_params = dict(computeId=comp_dict['id'],
|
||||||
affinityLabel=label,)
|
affinityLabel=label,)
|
||||||
self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityLabelSet", api_params)
|
self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityLabelSet", api_params)
|
||||||
|
if aff:
|
||||||
if len(aff[0])>0:
|
if len(aff[0])>0:
|
||||||
for rule in aff:
|
for rule in aff:
|
||||||
api_params = dict(computeId=comp_dict['id'],
|
api_params = dict(computeId=comp_dict['id'],
|
||||||
@@ -1215,6 +1216,7 @@ class DecortController(object):
|
|||||||
mode=rule['mode'],
|
mode=rule['mode'],
|
||||||
policy=rule['policy'],)
|
policy=rule['policy'],)
|
||||||
self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityRuleAdd", api_params)
|
self.decort_api_call(requests.post, "/restmachine/cloudapi/compute/affinityRuleAdd", api_params)
|
||||||
|
if aaff:
|
||||||
if len(aaff[0])>0:
|
if len(aaff[0])>0:
|
||||||
for rule in aaff:
|
for rule in aaff:
|
||||||
api_params = dict(computeId=comp_dict['id'],
|
api_params = dict(computeId=comp_dict['id'],
|
||||||
|
|||||||
Reference in New Issue
Block a user