core.lister_base: Ensure deterministic _task_key return value

This commit is contained in:
Antoine Lambert 2019-05-15 15:37:19 +02:00
parent 7d192a2f1b
commit 4efb2ce62b

View file

@ -480,7 +480,8 @@ class SWHListerBase(abc.ABC, config.SWHConfig):
return '%s-%s' % (_type, _url)
def _task_key(m):
return '%s-%s' % (m['type'], json.dumps(m['arguments']))
return '%s-%s' % (m['type'],
json.dumps(m['arguments'], sort_keys=True))
for m in models_list:
ir = injected_repos[m['uid']]