Fixed calls to do_badger to use keyword arguments for role(s)

- updated call to pass multiple roles at once
- updated call to pass single role with keyword arg

This requires Pillar 87afbc52f6c7d5eb63f0da745625d05b01e81783
This commit is contained in:
2017-08-23 09:32:01 +02:00
parent 838d85a2b7
commit 732fe7bc7c
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ def reconcile_subscribers():
action = 'grant'
with lock:
service.do_badger(action, 'subscriber', user_id=user['_id'])
service.do_badger(action, role='subscriber', user_id=user['_id'])
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
future_to_user = {executor.submit(do_user, idx, user): user