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:
Алексей Даньков
2024-04-16 11:12:37 +00:00

View File

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