mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
returners.postgres_local_cache: do not log in __virtual__
This commit is contained in:
parent
7121618142
commit
c2c442234f
1 changed files with 4 additions and 3 deletions
|
@ -108,12 +108,13 @@ RETURN_P = 'return.p'
|
|||
# out is the "out" from the minion data
|
||||
OUT_P = 'out.p'
|
||||
|
||||
__virtualname__ = 'postgres_local_cache'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
if not HAS_POSTGRES:
|
||||
log.info("Could not import psycopg2, postges_local_cache disabled.")
|
||||
return False
|
||||
return 'postgres_local_cache'
|
||||
return (False, 'Could not import psycopg2; postges_local_cache disabled')
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def _get_conn():
|
||||
|
|
Loading…
Add table
Reference in a new issue