pillar.call → pillar.sync_call

This commit is contained in:
2016-08-01 14:57:05 +02:00
parent 22e4f2dc5e
commit 28fe6e8f96
2 changed files with 11 additions and 11 deletions

View File

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