From f4b8446fd01724fcdb7e6f200f6aba487ef24f0f Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 6 Mar 2014 13:12:01 +0000 Subject: [PATCH] Not renaming, return a boolean in `__virtual__()`. --- salt/modules/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/postgres.py b/salt/modules/postgres.py index 003c1ade62..6da5cd4e38 100644 --- a/salt/modules/postgres.py +++ b/salt/modules/postgres.py @@ -57,7 +57,7 @@ def __virtual__(): Only load this module if the psql bin exists ''' if all((salt.utils.which('psql'), HAS_ALL_IMPORTS)): - return 'postgres' + return True return False