(Jira BANS-38) Add NoneType check for 'aff' argument of the 'Decort.Controller.compute_affinity' method. See merge request rudecs/dev/decort-ansible!19
@ -1245,7 +1245,7 @@ class DecortController(object):
if comp_dict['affinityRules']:
for rule in comp_dict['affinityRules']:
del rule['guid']
if rule not in aff:
if not aff or rule not in aff:
affrule_del.append(rule)
if aff: