Prevent caching issue when refreshing shot info from Attract

This commit is contained in:
2016-10-18 12:23:27 +02:00
parent 61a8db3f96
commit 54dccb20ba
2 changed files with 4 additions and 3 deletions

View File

@@ -218,10 +218,10 @@ async def pillar_call(pillar_func, *args, caching=True, **kwargs):
return await loop.run_in_executor(None, partial)
def sync_call(pillar_func, *args, **kwargs):
def sync_call(pillar_func, *args, caching=True, **kwargs):
"""Synchronous call to Pillar, ensures the correct Api object is used."""
return pillar_func(*args, api=pillar_api(), **kwargs)
return pillar_func(*args, api=pillar_api(caching=caching), **kwargs)
async def check_pillar_credentials(required_roles: set):