(Jira BANS-39) Add NoneType check for 'aaff' argument of the 'Decort.Controller.compute_affinity' method. See merge request rudecs/dev/decort-ansible!20
@ -1257,7 +1257,7 @@ class DecortController(object):
if comp_dict['antiAffinityRules']:
for rule in comp_dict['antiAffinityRules']:
del rule['guid']
if rule not in aaff:
if not aaff or rule not in aaff:
aaffrule_del.append(rule)
if aaff: