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
rc-5.3.0^2
Алексей Даньков 10 months ago
commit f4fcf5b7b7

@ -1257,7 +1257,7 @@ class DecortController(object):
if comp_dict['antiAffinityRules']: if comp_dict['antiAffinityRules']:
for rule in comp_dict['antiAffinityRules']: for rule in comp_dict['antiAffinityRules']:
del rule['guid'] del rule['guid']
if rule not in aaff: if not aaff or rule not in aaff:
aaffrule_del.append(rule) aaffrule_del.append(rule)
if aaff: if aaff:

Loading…
Cancel
Save