Add group iteration and syncing support to Keystone auth

This commit is contained in:
Joseph Schorr 2017-02-23 14:41:27 -05:00
parent 47278cc559
commit d7825c6720
6 changed files with 148 additions and 15 deletions

View file

@ -422,7 +422,8 @@ def list_team_robots(team):
def set_team_syncing(team, login_service_name, config):
""" Sets the given team to sync to the given service using the given config. """
login_service = LoginService.get(name=login_service_name)
TeamSync.create(team=team, transaction_id='', service=login_service, config=json.dumps(config))
return TeamSync.create(team=team, transaction_id='', service=login_service,
config=json.dumps(config))
def remove_team_syncing(orgname, teamname):