

def register_team_laas(team):
    for environment in Environment.objects.all():
        if team.databases_in_use_for(environment=environment):
            team_json = {
                
            }
            team_json['team'] = {
                'name': team.name,
                'users': get_users_for_team(team),
            }
            team_json = json.dumps(team_json)
            LOG.info(('Register team on LaaS. Team info: %s' % team_json))
            try:
                LaaSProvider.update_laas_team(environment=environment, laas_team=team_json)
            except Exception as e:
                LOG.error(('Ops... something went wrong: %s' % e))

dataset/ETHPy150Open globocom/database-as-a-service/dbaas/util/laas.py register_team_laas/original