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

This commit is contained in:
2024-04-15 17:03:51 +03:00
parent 31b72b3806
commit 9e7a33a44a

View File

@@ -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: