fix get_version cache key
This commit is contained in:
parent
aabf9f5037
commit
f75a156d46
|
@ -41,7 +41,8 @@ def substitute_version(version, name, conf):
|
|||
_cache = {}
|
||||
|
||||
async def get_version(name, conf, **kwargs):
|
||||
cache_key = tuple(sorted(conf.items()))
|
||||
cache_key = sorted(conf.items()) + sorted(kwargs.items())
|
||||
cache_key = tuple(cache_key)
|
||||
if cache_key in _cache:
|
||||
return _cache[cache_key]
|
||||
|
||||
|
|
Loading…
Reference in New Issue