@require_POST
@csrf_protect
def reposync(request):
 if (not test_user_authenticated(request)):
  return login(request, next='/cobbler_web/reposync', expired=True)
 remote.background_reposync({'names': '', 'tries': 3}, request.session['token'])
 return HttpResponseRedirect('/cobbler_web/task_created')

@ require_POST @ csrf_protect def reposync ( request ) : if ( not test_user_authenticated ( request ) ) : return login ( request , next = '/cobbler_web/reposync' , expired = True ) remote . background_reposync ( { 'names' : '' , 'tries' : 3 } , request . session [ 'token' ] ) return HttpResponseRedirect ( '/cobbler_web/task_created' )
syncs all repos that are configured to be synced .