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

rc-5.3.0^2
Dmitriy Smirnov 1 year ago
parent 31b72b3806
commit 694e68fe22

@ -1257,7 +1257,7 @@ class DecortController(object):
if comp_dict['antiAffinityRules']: if comp_dict['antiAffinityRules']:
for rule in comp_dict['antiAffinityRules']: for rule in comp_dict['antiAffinityRules']:
del rule['guid'] del rule['guid']
if rule not in aaff: if not aaff or rule not in aaff:
aaffrule_del.append(rule) aaffrule_del.append(rule)
if aaff: if aaff:

Loading…
Cancel
Save