Add NoneType check for the 'aff' argument to Affinity Rules management logic of the 'Decort.Controller.compute_affinity' method.

rc-5.3.0^2
Dmitriy Smirnov 10 months ago
parent 31b72b3806
commit 9e7a33a44a

@ -1245,7 +1245,7 @@ class DecortController(object):
if comp_dict['affinityRules']: if comp_dict['affinityRules']:
for rule in comp_dict['affinityRules']: for rule in comp_dict['affinityRules']:
del rule['guid'] del rule['guid']
if rule not in aff: if not aff or rule not in aff:
affrule_del.append(rule) affrule_del.append(rule)
if aff: if aff:

Loading…
Cancel
Save