From 1602fa681b615ed4874598da7c86b34579b02989 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 6 Mar 2014 14:05:02 +0000 Subject: [PATCH] Not renaming, return a boolean in `__virtual__()`. --- salt/states/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/mysql_user.py b/salt/states/mysql_user.py index 7e8dfb5608..591840c84f 100644 --- a/salt/states/mysql_user.py +++ b/salt/states/mysql_user.py @@ -47,7 +47,7 @@ def __virtual__(): ''' Only load if the mysql module is in __salt__ ''' - return 'mysql_user' if 'mysql.user_create' in __salt__ else False + return 'mysql.user_create' in __salt__ def _get_mysql_error():