
Comment: An exception occurred in this state: Traceback (most recent call last):


 "/usr/lib/python2.7/dist-packages/salt/state.py", line 1744, in call

**cdata['kwargs'])


 "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1702, in wrapper

return f(*args, **kwargs)


 "/usr/lib/python2.7/dist-packages/salt/states/mongodb_user.py", line 85, in present

user_exists = __salt__['mongodb.user_exists'](name, user, password, host, port, database, authdb)


 "/usr/lib/python2.7/dist-packages/salt/modules/mongodb.py", line 214, in user_exists

users = user_list(user, password, host, port, database, authdb)


 "/usr/lib/python2.7/dist-packages/salt/modules/mongodb.py", line 184, in user_list

('roles', user['roles'])

KeyError: 'roles'

Started: 10:32:57.242075

Traceback (most recent call last):


 "/Users/user/Documents/folderName/venv/lib/python3.6/site-packages/sqlalchemy/util/_collections.py", line 999, in __call__

return self.registry[key]
KeyError: 123145538134016
