From fc524c17b95dc092accaeb49db86ef0ad6c03af0 Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Mon, 21 Sep 2015 15:52:27 +0200 Subject: [PATCH] Reduce the criteria that would match empty iterables as well as None or False values --- salt/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/master.py b/salt/master.py index 917290e354..f846af8d24 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1779,7 +1779,7 @@ class ClearFuncs(object): # If there are groups in the token, check if any of them are listed in the eauth config group_auth_match = False try: - if token.get('groups') in [False, None]: + if token.get('groups'): for group in token['groups']: if group in eauth_groups: group_auth_match = True