pillar.call → pillar.sync_call
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user