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