Add NoneType check for the 'aaff' argument to Affinity Rules management logic of the 'Decort.Controller.compute_affinity' method.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user