def remove_team_repo(repo_name, team_name, profile='github'):
 team = get_team(team_name, profile=profile)
 if (not team):
  log.error('Team {0} does not exist'.format(team_name))
  return False
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  team = organization.get_team(team['id'])
  repo = organization.get_repo(repo_name)
 except UnknownObjectException as e:
  log.exception('Resource not found: {0}'.format(team['id']))
  return False
 team.remove_from_repos(repo)
 return (repo_name not in list_team_repos(team_name, profile=profile, ignore_cache=True))

def remove_team_repo ( repo_name , team_name , profile = 'github' ) : team = get_team ( team_name , profile = profile ) if ( not team ) : log . error ( 'Team {0} does not exist' . format ( team_name ) ) return False try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) team = organization . get_team ( team [ 'id' ] ) repo = organization . get_repo ( repo_name ) except UnknownObjectException as e : log . exception ( 'Resource not found: {0}' . format ( team [ 'id' ] ) ) return False team . remove_from_repos ( repo ) return ( repo_name not in list_team_repos ( team_name , profile = profile , ignore_cache = True ) )
removes a repository from a team with team_name .