Merge branch 'fix/rc-5.2.6/jira_bans-38' into 'rc-5.2.6'

(Jira BANS-38) Add NoneType check for 'aff' argument of the 'Decort.Controller.compute_affinity' method.

See merge request rudecs/dev/decort-ansible!19
This commit is contained in:
Алексей Даньков
2024-04-16 11:10:56 +00:00

View File

@@ -1245,7 +1245,7 @@ class DecortController(object):
if comp_dict['affinityRules']: if comp_dict['affinityRules']:
for rule in comp_dict['affinityRules']: for rule in comp_dict['affinityRules']:
del rule['guid'] del rule['guid']
if rule not in aff: if not aff or rule not in aff:
affrule_del.append(rule) affrule_del.append(rule)
if aff: if aff: