def edit_team(name, description=None, privacy=None, permission=None, profile='github'):
 team = get_team(name, profile=profile)
 if (not team):
  log.error('Team {0} does not exist'.format(name))
  return False
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  team = organization.get_team(team['id'])
  parameters = {}
  if (name is not None):
   parameters['name'] = name
  if ('description' is not None):
   parameters['description'] = description
  if ('privacy' is not None):
   parameters['privacy'] = privacy
  if (permission is not None):
   parameters['permission'] = permission
  team._requester.requestJsonAndCheck('PATCH', team.url, input=parameters)
  return True
 except UnknownObjectException as e:
  log.exception('Resource not found: {0}'.format(team['id']))
  return False

def edit_team ( name , description = None , privacy = None , permission = None , profile = 'github' ) : team = get_team ( name , profile = profile ) if ( not team ) : log . error ( 'Team {0} does not exist' . format ( name ) ) return False try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) team = organization . get_team ( team [ 'id' ] ) parameters = { } if ( name is not None ) : parameters [ 'name' ] = name if ( 'description' is not None ) : parameters [ 'description' ] = description if ( 'privacy' is not None ) : parameters [ 'privacy' ] = privacy if ( permission is not None ) : parameters [ 'permission' ] = permission team . _requester . requestJsonAndCheck ( 'PATCH' , team . url , input = parameters ) return True except UnknownObjectException as e : log . exception ( 'Resource not found: {0}' . format ( team [ 'id' ] ) ) return False
updates an existing github team .