Fix for tests: don't require 'groups' in the eauth token.

This commit is contained in:
Dmitry Kuzmenko 2017-08-31 20:39:35 +03:00
parent 1f104cf85b
commit 3ad6911210

View file

@ -370,7 +370,7 @@ class LoadAuth(object):
if token:
name = token['name']
groups = token['groups']
groups = token.get('groups')
else:
name = self.load_name(load) # The username we are attempting to auth with
groups = self.get_groups(load) # The groups this user belongs to