Merge branch 'fix/rc-5.2.6/jira_bans-39' into 'rc-5.2.6'
(Jira BANS-39) Add NoneType check for 'aaff' argument of the 'Decort.Controller.compute_affinity' method. See merge request rudecs/dev/decort-ansible!20
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